Implements PRNG without state.
Use this protocol to wrap some stateless implementations of a prng
.
To use prng implementing protocol, wraps it again with PrngStatefulImpl
.
Implements PRNG without state. Use this protocol to wrap some stateless implementations of a `prng`. To use prng implementing protocol, wraps it again with `PrngStatefulImpl`.
(jump _)
Jump to a completly different place.
Jump to a completly different place.
(next _)
Returns a new value of prng so next peek-rnd
will return a new value.
Returns a new value of prng so next `peek-rnd` will return a new value.
(peek-rnd _)
Peek the next random value without changing the prng.
Peek the next random value without changing the prng.
(rnd-range _)
Returns the range in which rnd is returned.
Returns the range in which rnd is returned.
(seed _)
Returns the seed of the random number generator.
Returns the seed of the random number generator.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close