Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying generate 100 random numbers using forach
between 1 thru 99
But always get between 0 and 1. Any ideas?
perl -wle "use 5.10.0; say rand foreach(1..100) ;"
Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Random generator fail
by MidLifeXis (Monsignor) on Dec 05, 2012 at 21:10 UTC | |
Re: Random generator fail
by blue_cowdawg (Monsignor) on Dec 05, 2012 at 21:18 UTC | |
| |
Re: Random generator fail
by BillKSmith (Monsignor) on Dec 06, 2012 at 04:34 UTC | |
by Anonymous Monk on Dec 06, 2012 at 13:38 UTC | |
by MidLifeXis (Monsignor) on Dec 06, 2012 at 18:44 UTC | |
by Anonymous Monk on Dec 06, 2012 at 20:12 UTC | |
by BillKSmith (Monsignor) on Dec 06, 2012 at 23:00 UTC | |
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 | |
Re: Random generator fail
by kcott (Archbishop) on Dec 07, 2012 at 09:03 UTC |
Back to
Seekers of Perl Wisdom