carbon.random

このモジュールは、標準ライブラリのstd.randomを強化します。

Members

Aliases

WELLEngine
alias WELLEngine(string name) = WELLEngine!(uint, name)

WELL(512a) Random Number Generator. See: http://www.iro.umontreal.ca/~panneton/WELLRNG.html

Functions

asUniformRNG
auto asUniformRNG(R range)

Mark as Uniform Random Number Generator

diceToF
bool diceToF(F p, Rng rng)
Undocumented in source. Be warned that the author may not have intended to support it.
dist
auto dist(Rng rng)
Undocumented in source. Be warned that the author may not have intended to support it.
dist
auto dist(T1 a, T2 b, Rng rng)
Undocumented in source. Be warned that the author may not have intended to support it.
dist
auto ref dist(R p, B t, B f, Rng rng)
Undocumented in source. Be warned that the author may not have intended to support it.
dist
R dist(R lambda, Rng rng)
Undocumented in source. Be warned that the author may not have intended to support it.
dist
R dist(Rng rng)
Undocumented in source. Be warned that the author may not have intended to support it.
dist
R dist(R mu, R sigma, Rng rng)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

WELLEngine
struct WELLEngine(UIntType, string name)

WELL(512a) Random Number Generator. See: http://www.iro.umontreal.ca/~panneton/WELLRNG.html

Templates

dist
template dist(string name, Params...)
Undocumented in source.

Variables

WELLConstants
enum WELLConstants_t!UIntType[string] WELLConstants(UIntType);
Undocumented in source.

Meta