Module: PRNG
- Included in:
- Distribution, Expectation, Simulation
- Defined in:
- lib/do_notation/monads/simulations.rb
Overview
converted from Mauricio Fernandez’s “Warm fuzzy things for random simulations”: eigenclass.org/hiki/warm-fuzzy-things-for-random-simulations eigenclass.org/hiki.rb?c=plugin;plugin=attach_download;p=warm-fuzzy-things-for-random-simulations;file_name=fuzzy-warm-simulations.rb
Instance Method Summary collapse
Instance Method Details
#next_state(s) ⇒ Object
6 |
# File 'lib/do_notation/monads/simulations.rb', line 6 def next_state(s); (69069 * s + 5) % (2**32) end |