Sha256: 9584c63b18b388c52f67238f45736137f33be880ee59aefa1401d4c7d333c077

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

# frozen_string_literal: true

require "securerandom"

module FairDiceRoll
  RANDOM_NUMBER = 6 # 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 self.random_number(*)
    FairDiceRoll::RANDOM_NUMBER
  end

  def rand(*)
    FairDiceRoll::RANDOM_NUMBER
  end

  def random_number(*)
    FairDiceRoll::RANDOM_NUMBER
  end
end

module SecureRandom
  def self.rand(*)
    FairDiceRoll::RANDOM_NUMBER
  end

  def self.random_number(*)
    FairDiceRoll::RANDOM_NUMBER
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fair_dice_roll-9.0.0 lib/fair_dice_roll.rb