From: "Y. NOBUOKA" Date: 2010-10-21T15:11:38+09:00 Subject: Re: generating random argument lists > now i just want to randomly generate a random number of arrays of random > lengths to pass as arguments to that method (each array being of > integers 0 to 3) > > any suggestions? One way is to use the built-in function *rand*. Here is an example program: arrays = Array.new rand(10).times do arr = Array.new rand(10).times { arr << rand(4) } arrays << arr end p arrays -- NOBUOKA Yuya