Crystal and random numbers
puts Random.rand # floating point
puts Random.rand(6) # Int
0.7619060657241036
1
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
puts Random.rand # floating point
puts Random.rand(6) # Int
0.7619060657241036
1