Sha256: 362968139cc803d60c0346f97c8e3ac6277fd56fe8d344ceb690810b2e2b95ee

Contents?: true

Size: 229 Bytes

Versions: 16

Compression:

Stored size: 229 Bytes

Contents

class ::Random
  MATH_RANDOM_GENERATOR = `{
    new_seed: function() { return 0; },
    reseed: function(seed) { return {}; },
    rand: function($rng) { return Math.random(); }
  }`

  self.generator = MATH_RANDOM_GENERATOR
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
opal-1.7.4 opal/corelib/random/math_random.js.rb
opal-1.7.3 opal/corelib/random/math_random.js.rb
opal-1.7.2 opal/corelib/random/math_random.js.rb
opal-1.7.1 opal/corelib/random/math_random.js.rb
opal-1.7.0 opal/corelib/random/math_random.js.rb
opal-1.7.0.rc1 opal/corelib/random/math_random.js.rb
opal-1.6.1 opal/corelib/random/math_random.js.rb
opal-1.6.0 opal/corelib/random/math_random.js.rb
opal-1.6.0.rc1 opal/corelib/random/math_random.js.rb
opal-1.6.0.alpha1 opal/corelib/random/math_random.js.rb
opal-1.5.1 opal/corelib/random/math_random.js.rb
opal-1.5.0 opal/corelib/random/math_random.js.rb
opal-1.5.0.rc1 opal/corelib/random/math_random.js.rb
opal-1.4.1 opal/corelib/random/math_random.js.rb
opal-1.4.0 opal/corelib/random/math_random.js.rb
opal-1.4.0.alpha1 opal/corelib/random/math_random.js.rb