in reply to
Randomly select values from array
Consider the array
(5, 5, 5, 10, 10, 10, 0, 0, 0, 0, 0, 0)
. Now, you can reduce this array to empty by repeatedly selecting
(5, 10, 0, 0)
. However, if ones first pick is
(5, 5, 5, 0)
, no further selections can be made.
Now what?
Comment on
Re: Randomly select values from array
Select
or
Download
Code
In Section
Seekers of Perl Wisdom