Sha256: a264eee4d94e2eb2359c83003efa083ed2d98c63e60193c0d73a85bad6ae89d7

Contents?: true

Size: 133 Bytes

Versions: 3

Compression:

Stored size: 133 Bytes

Contents

module AwesomeGameRandomizer
  class Coin
    def self.flip
      coin = ["heads", "tails"]
      coin[rand(0..1)]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
awesome_game_randomizer-0.1.3 lib/awesome_game_randomizer/coin_flip.rb
awesome_game_randomizer-0.1.2 lib/awesome_game_randomizer/coin_flip.rb
awesome_game_randomizer-0.1.1 lib/awesome_game_randomizer/coin_flip.rb