This is what I have so far:
myArray.map!{ rand(max) }
Obviously, however, sometimes the numbers in the list are not unique. How can I mak
How about a play on this? Unique random numbers without needing to use Set or Hash.
x = 0 (1..100).map{|iter| x += rand(100)}.shuffle