Class: HaphazardlyGem::Dice
- Inherits:
-
Object
- Object
- HaphazardlyGem::Dice
- Defined in:
- lib/haphazardly_gem/dice.rb
Class Method Summary collapse
Class Method Details
.roll(number) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/haphazardly_gem/dice.rb', line 6 def self.roll(number) output = Array.new dice = [1, 2, 3, 4, 5, 6] number.times do output << dice.sample end return output end |