Skip to content

Instantly share code, notes, and snippets.

View LisaBee224's full-sized avatar

Lisa Buch LisaBee224

View GitHub Profile
def shuffle(array)
comp_array = array.dup
random_nums = []
until random_nums.length == array.length
j = rand(array.length)
if !random_nums.include?(j)
random_nums << j
end
end
def shuffle(array)
comp_array = array.dup
random_nums = []
until random_nums.length == array.length
j = rand(array.length)
if !random_nums.include?(j)
random_nums << j
end
end