The OpenD Programming Language

rand

Return Value

Type: bool

Uniformly distributed boolean.

Examples

auto s = rand!bool;
import mir.random.engine.xorshift;
auto gen = Xorshift(1);
auto s = gen.rand!bool;

Meta