Sha256: bc1093ca26fc8fe88b034f1ed68453478a18d8e1541efd9e6ebdc8a9af54b585
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
require "securerandom" module FairDiceRoll RANDOM_NUMBER = 2 # chosen by fair dice roll. # guaranteed to be random. end module Kernel def self.rand(*) FairDiceRoll::RANDOM_NUMBER end def rand(*) FairDiceRoll::RANDOM_NUMBER end end class Random def self.rand(*) FairDiceRoll::RANDOM_NUMBER end def rand(*) FairDiceRoll::RANDOM_NUMBER end end module SecureRandom def self.random_number(*) FairDiceRoll::RANDOM_NUMBER end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fair_dice_roll-4.0.0 | lib/fair_dice_roll.rb |