Mail Archives: djgpp/1999/05/03/03:01:07
On Sun, 2 May 1999, Richard Fabian wrote:
> 1. If you generate a set of random numbers using the same seed on
> different machines, do you get the same set?
No, because the implementation of the random number generators is
different on different platforms.
> 2. Is there a way to generate random numbers without accessing the
> rand() function.
You mean, you want to include your own random generator as part of the
program, right?
You could, of course, write your own version of `rand' (for starters,
the sources of the DJGPP implementation are freely available, and many
books on computer algorithms will show at least one random generator).
- Raw text -