This is the API documentation for random: Ruby Standard Library Documentation.