Using just Ruby I am trying to
Generate an array of random numbers
Create a new 2 dimensional array containing x amount of arrays filled with x amount of samples from the original number list.
This is what I have...
a = 1000.times.map{rand(100)}.to_a
b = 5.times.map{a.sample}
#=> [3, 96, 23, 45, 41]
I basically want to be able to generate what I did in b, x amount of times.
Is this possible?
Thank you for the comments everyone!