"be consistent" | |
PerlMonks |
Re: Is there an easy way to assign guaranteed unique values to a simple array without looping through whole array?by traveler (Parson) |
on Nov 30, 2007 at 00:08 UTC ( [id://654011]=note: print w/replies, xml ) | Need Help?? |
Another way to look at this is that you want a shuffled version of some list. Take (1..7) for example. With Algorithm::Numerical::Shuffle you can do that easily:
The idea of shuffling an array has been discussed before (and other places, too). HTH, --traveler
In Section
Seekers of Perl Wisdom
|
|