in reply to Re^2: is rand random enough to simulate dice rolls?
in thread is rand random enough to simulate dice rolls?

Note that you don't really need the two ok's in the else since the conditions have already been tested, and in fact they may fail in case $avg==3.4 or $avg==3.6. You could just do else { pass "average randomness ok (3.4 < 10000d6 / 10000 < 3.6)" } instead.

Replies are listed 'Best First'.
Re^4: is rand random enough to simulate dice rolls?
by Discipulus (Canon) on Jan 04, 2021 at 13:57 UTC
    yes :) I was tempted to put there a  ok ( 1, "average randomness ok.. but seemed stupid. I forgot the pass option. Thanks

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.