in reply to Re^2: Randomize elements among several arrays, while maintaining original array sizes.
in thread Randomize elements among several arrays, while maintaining original array sizes.

The @where_to, is a list of places where the items are destined to go. I want to not simply shuffle the arrays. That is easy as has been pointed out, and I am aware of how to do this (having learned "some basic perl").

I want to move the items around between the arrays, while maintaining the array sizes. So items in A can move to A, B, or C.

It is not so much shuffling the order of each array as it is shuffling where each elements goes and creating new arrays of size A B and C that now have elements drawn from A B or C. In essence, I am trying to set up a permutation test, but having great difficulty with this.

---- Even a blind squirrel finds a nut sometimes.
  • Comment on Re^3: Randomize elements among several arrays, while maintaining original array sizes.