Random number generator (included): Difference between revisions
Content deleted Content added
Kinitawowi (talk | contribs) |
Kinitawowi (talk | contribs) →{{header|ZX Spectrum Basic}}: linkage |
||
Line 949:
=={{header|ZX Spectrum Basic}}==
The manual is kind enough to detail how the whole thing works. Nobody is expected to do the maths here, although it has been disassembled online; in short, it's a modified Park-Miller (or [https://en.wikipedia.org/wiki/Lehmer_random_number_generator Lehmer]) generator.
Exercises
1. Test this rule:
1. Suppose you choose a random number between 1 and 872 and type▼
<pre>RANDOMIZE your number</pre>
Then the next value of RND will be
|