|P is for Practical|
getting random number 8 times never the sameby Anonymous Monk
|on Oct 31, 2010 at 16:23 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I want to get 8 random numbers from a list, from these: 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 so I guess I would put those into an array:
Now, how do I get a random one that is unique from each other in 8 different variables? for example:
Now how would I remove that number from the array? Is that the best way to get a random number from the list?