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

The question becomes "are you going to use all the numbers in that range?" If so, you have to remember them all regardless of your approach. If no, then you could save memory by just tracking what you use... but this then becomes more processor-expensive.

  • 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 17:36 UTC
    On the plus side, once you've "bought it", the cost is pretty much constant.

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