Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby generate random number

rand()#that will give you a random float between 0 and 10

rand(num)#that will give you a random integer between 0 and the number num

rand(first...second)#that will give you a random
#integer between first and second
 
PREVIOUS NEXT
Tagged: #ruby #generate #random #number
ADD COMMENT
Topic
Name
3+5 =