in reply to Re: Random generator fail
in thread Random generator fail
Ok I have better understanding now, Bill your solutions works great!
@MidLifeXis What is rational for rand to ignore $_. Appearently you pointing out that, solves my problem by using
perl -wle "use 5.10.0; foreach (1..100) { say rand($_);};" 1.94992065429688 56.7288208007813 52.1597290039063 18.6995849609375 6.6961669921875 68.6776733398438 65.6177978515625 62.72314453125 52.1324157714844 ...
But I think using additional line { say rand($_); is completely un-neccessary. Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Random generator fail
by MidLifeXis (Monsignor) on Dec 06, 2012 at 18:44 UTC | |
by Anonymous Monk on Dec 06, 2012 at 20:12 UTC | |
|
Re^3: Random generator fail
by BillKSmith (Monsignor) on Dec 06, 2012 at 23:00 UTC | |
|
Re^3: Random generator fail
by Anonymous Monk on Dec 06, 2012 at 14:07 UTC | |
by MidLifeXis (Monsignor) on Dec 06, 2012 at 17:23 UTC | |
by Anonymous Monk on Dec 06, 2012 at 14:22 UTC |