menu
Version
2024.1.4.8780
2024.1.4.8780
2023.1.12.8706
2022.1.18.8567
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
2024.1.4.8780
2023.1.12.8706
2022.1.18.8567
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
Wwise SDK 2024.1.4
|
#include <AkRng.h>
Public Member Functions | |
CAkRng (AkUInt64 uSeed) | |
Initialize using the specified seed. More... | |
AkUInt64 | Seed () const |
Returns the current seed value of the RNG. More... | |
AkUInt32 | Peek () const |
Returns the next random number to be generated without advancing the RNG state. More... | |
AkUInt32 | Random () |
Returns a random 31-bit unsigned integer. More... | |
AkInt32 | RandomInt () |
Returns a random 31-bit integer. More... | |
AkReal32 | RandomFloat () |
Returns a random float from 0.0 to 1.0. More... | |
Static Public Member Functions | |
static AkInt32 | Random (AkUInt64 &io_uSeed) |
Returns a random 31-bit unsigned integer using provided seed. More... | |
static AkInt32 | RandomInt (AkUInt64 &io_uSeed) |
Returns a random 31-bit integer using provided seed. More... | |
static AkUInt32 | Peek (AkUInt64 in_uSeed) |
Returns the next random number to be generated without advancing the RNG state. More... | |
Static Public Attributes | |
static constexpr AkUInt64 | RANDOM_A = 6364136223846793005ULL |
static constexpr AkUInt64 | RANDOM_C = 1 |
static constexpr AkUInt32 | RANDOM_MAX = 0x7FFFFFFF |
A pseudorandom number generator appropriate for introducing randomness in DSP processing LCG with Newlib/Musl characteristics: 64-bit seed, 31-bit output (see http://en.wikipedia.org/wiki/Linear_congruential_generator) Warning: This RNG is not cryptographically secure! Do not use it as such!
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageRegister your project and we'll help you get started with no strings attached!
Get started with Wwise