Sha256: eb33b0bff24575389d350adbdcd8a551c5802d3630c7a6803cb85d7c5fd17cfb
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
require "securerandom" module FairDiceRoll RANDOM_NUMBER = 3 # 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fair_dice_roll-5.1.0 | lib/fair_dice_roll.rb |
fair_dice_roll-5.1.0.rc1 | lib/fair_dice_roll.rb |
fair_dice_roll-5.0.0 | lib/fair_dice_roll.rb |
fair_dice_roll-2.0.0 | lib/fair_dice_roll.rb |