Blend2DBETA

2D Vector Graphics Engine

BLRandom Struct Reference

Simple pseudo random number generator.

The current implementation uses a PRNG called `XORSHIFT+`

, which has 64-bit seed, 128 bits of state, and full period `2^128 - 1`

.

Based on a paper by Sebastiano Vigna: http://vigna.di.unimi.it/ftp/papers/xorshiftplus.pdf

Construction & Destruction

Overloaded Operators

Common Functionality

Random Numbers

uint64_t nextUInt64()

uint32_t nextUInt32()

double nextDouble()

`0`

)¶Resets the random number generator to the given `seed`

.

Always returns `BL_SUCCESS`

.

Tests whether the random number generator is equivalent to `other`

.

Random number generator would only be equivalent to `other`

if it was initialized from the same seed and has the same internal state.

Returns the next pseudo-random `uint64_t`

value and advances its state.

Returns the next pseudo-random `uint32_t`

value and advances its state.

Returns the next pseudo-random `double`

precision floating point in [0..1) range and advances its state.