Jazz2::Scripting::Legacy::jjRNG class

A seedable pseudo-random number generator.

Public static functions

static auto Create(std::uint64_t seed) -> jjRNG*
Returns a new instance seeded with the given value.

Constructors, destructors, conversion operators

jjRNG(std::uint64_t seed)
Creates a new instance seeded with the given value.
~jjRNG()

Public functions

void AddRef()
Increments the reference count.
void Release()
Decrements the reference count.
auto operator()() -> std::uint64_t
auto operator=(const jjRNG& o) -> jjRNG&
auto operator==(const jjRNG& o) const -> bool
void seed(std::uint64_t value)
Reseeds the generator with the given value.
void discard(std::uint64_t count)
Advances the generator past the given number of outputs.