The stupid question is the question not asked | |
PerlMonks |
random numberby huskey (Beadle) |
on Dec 13, 2002 at 03:43 UTC ( [id://219491]=perlquestion: print w/replies, xml ) | Need Help?? |
huskey has asked for the wisdom of the Perl Monks concerning the following question:
What I need is to give a list of members a random number selected from an array of numbers. For example if there were 200 members in my list, each member would get a randomly selected number between 1 and 200, and once a member had that number it would be removed from the array of numbers, so that each member has a unique random number. Does that make sense? What would be the easiest way to do this?
Back to
Seekers of Perl Wisdom
|
|