I'm confused about this

Doug Gwyn gwyn at smoke.brl.mil
Thu Nov 22 03:06:43 AEST 1990


In article <1990Nov21.025459.22201 at ux1.cso.uiuc.edu> gordon at osiris.cso.uiuc.edu (John Gordon) writes:
>	So, the random-number generator is seeded with another random number.
>This ensures very random results.

No, what it does is make the generated sequence differ for different
executions of the same program.  (Nonreproducability.)  This is unwise
during development of the program but can be useful in production use
of the program (depending on the use of the generated sequence).

How "random" the sequence is is normally unaffected by the seeding.



More information about the Comp.lang.c mailing list