Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Now, how do I get a random one that is unique from each other in 8 different variables? for example:@nums = (4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
Now how would I remove that number from the array? Is that the best way to get a random number from the list?$_num1 = join("", @nums[ map { rand @nums } ( 1 .. 1 ) ]);
|
|---|