Shuffle generation

Jim Roth jroth at allvax.enet.dec.com
Fri May 17 22:20:21 AEST 1991


In article <4787 at osc.COM>, jgk at osc.COM (Joe Keane) writes...
> ... stuff deleted ...
> 
>Note that if you seed your random-number generator with a 32-bit integer, then
>there are only 2^32 possible permutations, no matter how big the array is.  If
>you worry about such things, like i do, then you should make multiple passes
>over the array.

This won't result in any more possible permutations, only a different
set of them.

- Jim



More information about the Comp.lang.c mailing list