dplug.core.random

@nogc random numbers and UUID generation.

Members

Functions

defaultGlobalRNG
Xorshift32 defaultGlobalRNG()
Undocumented in source. Be warned that the author may not have intended to support it.
generateNullTerminatedRandomUUID
void generateNullTerminatedRandomUUID(CharType[] buffer, const(CharType)[] prefix)

Generate a zero-terminated string with concatenated prefix and an UUDI. Random UUID generation is often used to generate names like this.

generateRandomUUID
UUID generateRandomUUID()

Generates a random UUID.

nogc_uniform_float
auto nogc_uniform_float(float min, float max, Xorshift32 rng)
Undocumented in source. Be warned that the author may not have intended to support it.
nogc_uniform_int
auto nogc_uniform_int(int min, int max, Xorshift32 rng)
Undocumented in source. Be warned that the author may not have intended to support it.
nogc_unpredictableSeed
uint nogc_unpredictableSeed()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

generate
UUID generate(Xorshift32 randomGen)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

Authors

Guillaume Piolat Johannes Pfau Andrei Alexandrescu