Recently, we learned how to generate pseudorandom numbers that can have a
fairly long cycle. We saw in the lecture notes a set of methods (
rand and randinit()) in the
program parkm.cc that can generate long-period
sequences of pseudorandom numbers.
| m | a |
|---|---|
| 231 - 1 | 91367 |
| 1073741789 | 91309 |
| 1073741789 | 100003 |