Rails Pilih Elemen N Sewitrary Dari Array
array = [1, 2, 3, 4, 5, 6]
array.shuffle.first(3) # => [5, 2, 4]
Lioruby
array = [1, 2, 3, 4, 5, 6]
array.shuffle.first(3) # => [5, 2, 4]