Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created June 10, 2015 01:17
Show Gist options
  • Save practicingruby/6510d00f0b0272e9d301 to your computer and use it in GitHub Desktop.
Save practicingruby/6510d00f0b0272e9d301 to your computer and use it in GitHub Desktop.
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