|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Re: Re: Re: Re: Remove lowest numberby l2kashe (Deacon) |
| on Aug 06, 2003 at 16:30 UTC ( #281475=note: print w/ replies, xml ) | Need Help?? |
|
rand will take its argument, and return a number somewhere between 0 and n-1 (0 -> 5 in this case). Actually it will return, though I'm not sure to what decimal depth, a random fractional number (0.0* -> 5.9*). Applying int() to the result causes it to round the fractional to a whole number. Then we add one. use perl;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||