![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RandomStream.h>
Public Member Functions | |
| CRandomStream (int32_t Seed=0) | |
| void | Initialize (int32_t Seed) |
| int32_t | RandRange (int32_t Min, int32_t Max) |
| float | FRandRange (float Min, float Max) |
| bool | RandBool () |
Protected Member Functions | |
| void | MutateSeed () |
Implements a thread-safe random number stream. Very bad quality in the lower bits. Don't use the modulus (%) operator.
|
inline |
Default constructor.
Initializes this random stream with the specified seed value.
| Seed | The seed value. |
|
inlineprotected |
Mutates the current seed into the next seed.
|
inline |