go ahead... be a heretic | |
PerlMonks |
Re: Randomize elements among several arrays, while maintaining original array sizes.by pjotrik (Friar) |
on Aug 01, 2008 at 15:48 UTC ( [id://701731]=note: print w/replies, xml ) | Need Help?? |
Perhaps I'm failing to understand what you're trying to do, but why don't you shuffle the items inside a long array (with length being the sum of individual arrays lengths) and then split the array into slices of desired lengths?
In Section
Seekers of Perl Wisdom
|
|