This file contains 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
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" |
This file contains 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
dice = [ ] | |
i = 0 | |
while i < 16 | |
dice << rand(1..6) | |
i = i+1 | |
end | |
puts | |
puts "Your dice are: #{dice.join(',')}" | |
puts | |