Skip to content

Instantly share code, notes, and snippets.

View claytonflesher's full-sized avatar

Clayton Flesher claytonflesher

  • Oklahoma City, OK
View GitHub Profile
def minor_tables
{
nil => {
1..4 => "Armor and shields",
5..9 => "Weapons",
10..44 => "Potions",
45..46 => "Rings",
47..81 => "Scrolls",
82..91 => "Wands",
92..100 => "Wondrous items"
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts
puts "Your dice are: #{dice.join(',')}"
puts