in reply to Re^3: Randomising the order of an array
in thread Randomising the order of an array

Numbers can repeat more often than rand's period, but you're right, it won't happen often.
  • Comment on Re^4: Randomising the order of an array

Replies are listed 'Best First'.
Re^5: Randomising the order of an array
by Anonymous Monk on Jul 19, 2005 at 20:14 UTC
    Numbers can repeat more often than rand's period, but you're right, it won't happen often.
    I haven't check the actual source code, but I'm fairly confident that if your perl is using drand48, you won't get repeats any sooner than the period of the RNG (2**48).