Mail Archives: djgpp/1997/08/18/06:50:40
>
> Can anyone show me a example with srandom, rand, and random functions in
> order to use *true* random numbers ?
>
There is *no* such a thing as true random numbers on a computer.
Any sequence is always pseudorandom, and the randomness properties
depend a lot on the particular randomgenerator used (most attempt
to simulate an uniform distribution). You best do two things:
- use info to look up the correct syntax for these functions
- to get started quick, search the the mail archive (www.delorie.com),
this subject has come up so many times before...
- read 'numerical recipies in C' which has whole section devoted on
good random # generators
- Raw text -