Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby randomize array

[1,2,3,4].shuffle => [2, 1, 3, 4]
[1,2,3,4].shuffle => [1, 3, 2, 4]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #randomize #array
ADD COMMENT
Topic
Name
5+5 =