Anonymous user
Talk:Deal cards for FreeCell: Difference between revisions
m
→equation clarification: added a new talk section.
m (→equation clarification: added a new talk section.) |
|||
Line 25:
<pre># return (($s = ($s * 214013 + 2531011) & 0x7fffffff) >> 16 );
return (($s = ($s * 214013 + 2531011) % 2**31 ) >> 16 ); # fix for 32 bit perl</pre>
==equation clarification==
The equation:
::* <big><math>state_{n + 1} \equiv 214013 \times state_n + 2531011 \pmod{2^{31}}</math></big>
should probably read
::* <big><math>state_{n + 1} \equiv [ 214013 \times state_n + 2531011 ] \pmod{2^{31}}</math></big>
to indicate that the modulus is for the entire equation, not just the last term; even though by inspection, it becomes obvious what was meant. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:33, 11 June 2015 (UTC)
|