in reply to Re^2: is rand random enough to simulate dice rolls?
in thread is rand random enough to simulate dice rolls?
But that's exactly what the definition of a PRNG guarantees.
There *exists* a large number, such that the range is met in the run.
Problematic is only the suggested number 10000, but my gut feeling says it's already big enough.
I'd say if the OP wants to be sure of that, then he should include it in his test-suite.
And if it's not critical enough to make the installation fail, he can still use it to emit a warning to the user.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|