From: botp Date: 2010-06-04T01:59:17+09:00 Subject: Re: Permutations that include sub-arrays in ruby? On Fri, Jun 4, 2010 at 12:04 AM, Todd A. Jacobs wrote: > The reason is that there's no permutation of the sub-arrays, just of the > top-level array elements. you assumed that it has *only* sub-arrays consider eg, [[1, 2], :a, String, 3].permutation.to_a > Am I overlooking something obvious here? I'd > like the permutations to include randomization within each sub-array, just include permutation of the sub then kind regards -botp