Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Randomize elements among several arrays, while maintaining original array sizes.

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?
  • Comment on Re: Randomize elements among several arrays, while maintaining original array sizes.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://701731]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-25 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found