in reply to Re^2: How to not print the same random number
in thread How to not print the same random number

Yes sure, the array with all numbers is build and shuffled. On the other hand, hash solutions require more memory and more cpu power they build the same array but slower. A hash is a better choice, if you use only some number out of a large range. For really really much numbers a database is my best choice.
Boris
  • Comment on Re^3: How to not print the same random number

Replies are listed 'Best First'.
Re^4: How to not print the same random number
by shotgunefx (Parson) on Mar 04, 2006 at 11:08 UTC
    That's what I figured. I haven't kept up lately, didn't know if some lazy evaluation had snuck in there ;)

    -Lee
    "To be civilized is to deny one's nature."