in reply to is rand random enough to simulate dice rolls?
But I dont wont to do a cryptographically secure application.
I just want to be sure that if I use rand to simulate a six sided die and I repaet the roll 10000 times I will get an average result of 3.5 as expected.
If that's the case, why bother? If the result is other than expected, just output that, a short remark about why this is bad, and let users of specific platforms scratch their own head :P
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: is rand random enough to simulate dice rolls?
by Discipulus (Canon) on Jan 03, 2021 at 17:03 UTC | |
by haukex (Archbishop) on Jan 04, 2021 at 13:20 UTC | |
by Discipulus (Canon) on Jan 04, 2021 at 13:57 UTC |
In Section
Seekers of Perl Wisdom