The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
SplitMixEngine.opIndex
mir
random
engine
splitmix
SplitMixEngine
Compatibility with
Phobos library methods
. Presents this RNG as an InputRange.
struct
SplitMixEngine
(alias mixer, bool split_enabled = false, OptionalArgs...)
@
nogc
nothrow pure @
safe
const
ulong
opIndex
()
(
size_t
n
)
if
(
(
__traits(
compiles
, ) ||
__traits(
compiles
, )
)
&&
(
OptionalArgs.length
< 1 ||
(
is
(
typeof
(
OptionalArgs
[1]) ==
ulong
) &&
OptionalArgs
[1] !=
DEFAULT_SPLITMIX_INCREMENT
)
)
&&
OptionalArgs.length
< 2
)
Meta
Source
See Implementation
mir
random
engine
splitmix
SplitMixEngine
aliases
gamma
popFrontExactly
constructors
this
functions
opCall
opIndex
popFront
popFrontN
seed
skip
split
properties
front
save
variables
default_increment
empty
increment
increment_specifiable
isRandomEngine
isUniformRandom
max
min
period_pow2
state
Compatibility with Phobos library methods. Presents this RNG as an InputRange.