rand
-
rand
-
Pseudo Random floating point number between 0 and 1
puts Random.rand # floating point
puts Random.rand(6) # Int
0.9567402323460531
0
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help