Talk:Visual Basic for Applications/A PRNG for VBA

given value of a = 1140671485 for VBA RND function
Specifying a &gt; m is mindless due to the rules of modular arithmetic. In XL, =MOD(1140671485,16777216) gives 67, so that the proper value for a is 1140671485 - 67 * 16777216 = 16598013 &lt; m. I'll change that. Doc Schorsch (discuss • contribs) 09:06, 11 January 2023 (UTC)