in reply to Re^2: Random generator fail
in thread Random generator fail

forgot to add this:

perl -wle "use 5.10.0; say int foreach (1..100) ;"

Works as rand() should have.

Replies are listed 'Best First'.
Re^4: Random generator fail
by MidLifeXis (Monsignor) on Dec 06, 2012 at 17:23 UTC

    Works as rand() should have.
    Either your assumptions are wrong, or the documentation for rand does not match the implementation. Which do you think it is?

    --MidLifeXis

Re^4: Random generator fail
by Anonymous Monk on Dec 06, 2012 at 14:22 UTC

    This one is better

    perl -wle "use 5.10.0; say abs foreach (-5..5) ;" 5 4 3 2 1 0 1 2 3 4 5