Random number generator

JONATHAN FORBES jonathan.forbes at canremote.uucp
Fri Dec 22 19:48:00 AEST 1989


It depends how random you want your numbers to be.  If merely using the 
timer for randomising isn't enough, you can just add together the 
addresses of several of your variables and seed the generator with that.
 Poking around in memory and adding up random memory locations should 
produce a decent random number generator (although a very hacked up and 
non-portable one.)
---
 * Via ProDoor 3.1R 



More information about the Comp.lang.c mailing list