Skip to content

Instantly share code, notes, and snippets.

@alexgodin
Created August 13, 2011 01:09
Show Gist options
  • Save alexgodin/1143352 to your computer and use it in GitHub Desktop.
Save alexgodin/1143352 to your computer and use it in GitHub Desktop.
dice roll
def roll_dice(number_of_dice)
number_of_dice.times {p roll_die}
end
def roll_die
r = Random.new
r.rand(1..6)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment