-
-
Save practicingruby/6510d00f0b0272e9d301 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "How many sides? " | |
sides = gets.to_i | |
puts "You rolled a #{rand(1..sides)}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment