Module: PRNG

Included in:
Distribution, Expectation, Simulation
Defined in:
lib/do_notation/monads/simulations.rb

Overview

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