Gistlib Logo

gistlib

other ruby categories

sampling code snippets in ruby

get a sample of 5 elements from an array in ruby
get a sample of 5 elements from an array with replacement in ruby
get a sample of 5 elements from an array without replacement in ruby

gistlibby LogSnag