Robert Voigtländer wrote: > I need to generate all variants of a 2D array with variable dimension sizes > which fit a specific rule. (up to 200*1000) Um... you realise there are 200**1000 solutions for the 200x1000 case? Are you sure that's really what you want? -- Greg