lib/cinch/plugins/dicebag/bag.rb
# Render the @dice hash as an array of rolls to pass to the Die module.
#   This also is where we randomly select how many dice from the range
#   are actually rolled.
Render the @dice hash as an array of rolls to pass to the Die module.
This also is where we randomly select how many dice from the range
are actually rolled.
Render the @dice hash as an array of rolls to pass to the Die module . This also is where we randomly select how many dice from the range are actually rolled .
def die_array
          @dice.keys.map do |sides|
            "#{rand(@dice[sides] + 1)}d#{sides}"
          end
        end
def die_array @dice . keys . map do | sides | "#{rand(@dice[sides] + 1)}d#{sides}" end end
Render the @dice hash as an array of rolls to pass to the Die module.
Render the @dice hash as an array of rolls to pass to the Die module .