Module quickrand

Quick Random Number Generation

.

Copyright © 2012-2017 Michael Truog

Version: 1.7.1 May 31 2017 13:58:21 ------------------------------------------------------------------------

Authors: Michael Truog (mjtruog [at] gmail (dot) com).

Description

Quick Random Number Generation

Function Index

seed/0

Seed random number generation.

.
strong_float/0

Return an Erlang floating point random number (double-precision).

return a floating point value between 0.0 and 1.0, inclusive.
strong_uniform/1

Strong uniform random number generation.

.
strong_uniform_range/2

Strong uniform random number generation in a range.

.
uniform/1

Quick uniform random number generation.

Not meant for cryptographic purposes.
uniform/1
uniform_cache/1

Quick uniform random number generation with cached data.

Not meant for cryptographic purposes.
uniform_cache/1
uniform_cache/2

Quick uniform random number generation with cached data.

Not meant for cryptographic purposes.
uniform_cache/2

Function Details

seed/0

seed() -> ok

Seed random number generation.

strong_float/0

strong_float() -> float()

Return an Erlang floating point random number (double-precision).

return a floating point value between 0.0 and 1.0, inclusive

strong_uniform/1

strong_uniform(N::pos_integer()) -> pos_integer()

Strong uniform random number generation.

strong_uniform_range/2

strong_uniform_range(Min::non_neg_integer(), Max::non_neg_integer()) -> non_neg_integer()

Strong uniform random number generation in a range.

uniform/1

uniform(N::pos_integer()) -> pos_integer()

Quick uniform random number generation.

Not meant for cryptographic purposes.

uniform/1

uniform(N) -> any()

uniform_cache/1

uniform_cache(N::pos_integer()) -> pos_integer()

Quick uniform random number generation with cached data.

Not meant for cryptographic purposes.

uniform_cache/1

uniform_cache(N) -> any()

uniform_cache/2

uniform_cache(N::pos_integer(), State::quickrand_cache:state()) -> {pos_integer(), quickrand_cache:state()}

Quick uniform random number generation with cached data.

Not meant for cryptographic purposes.

uniform_cache/2

uniform_cache(N, State) -> any()


Generated by EDoc