Sha256: 021288f34e1691edad29b6b173d36936af9c0fc28d92c555921d718c6e6453c1

Contents?: true

Size: 205 Bytes

Versions: 31

Compression:

Stored size: 205 Bytes

Contents

# frozen_string_literal: true

class RandomGenerator
  KAPA = 3.9 + Random.rand / 10.0

  class << self
    def rand
      @rand ||= Random.rand

      @rand = KAPA * @rand * (1 - @rand)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sinclair-1.6.7 spec/support/models/random_generator.rb
sinclair-1.6.6 spec/support/models/random_generator.rb
sinclair-1.6.5 spec/support/models/random_generator.rb
sinclair-1.6.4 spec/support/models/random_generator.rb
sinclair-1.6.3 spec/support/models/random_generator.rb
sinclair-1.6.2 spec/support/models/random_generator.rb
sinclair-1.6.1 spec/support/models/random_generator.rb
sinclair-1.6.0 spec/support/models/random_generator.rb
sinclair-1.5.2 spec/support/models/random_generator.rb
sinclair-1.5.1 spec/support/models/random_generator.rb
sinclair-1.5.0 spec/support/models/random_generator.rb