Last Updated: December 26, 2018
·
3.982K
· beanieboi

Ruby generate random number, doing it right.

SecureRandom.random_number(maximum)

1 Response
Add your response

Do:
$ require "securerandom"
If you get error:
NameError: uninitialized constant SecureRandom

over 1 year ago ·