Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

Ruby rand

puts rand(25) 			# from 0 to 25
puts rand(1..25) 		# from 1 to 25
puts rand(5...25) 		# from 1 to 24
puts rand(3.14..102.54) # from 3.14 to 102.54
 
PREVIOUS NEXT
Tagged: #Ruby #rand
ADD COMMENT
Topic
Name
7+6 =