Sha256: 557b82922b37d1cb78db9b4a0e8dfbbd0e97e067b44d84b596fe556937f08947

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

require "securerandom"

module FairDiceRoll
  RANDOM_NUMBER = 4 # 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-1.0.0 lib/fair_dice_roll.rb