![]() |
XII Release 0.1.0
|
#include <ScriptExtensionClass_StableRandom.h>
Static Public Member Functions | |
| static xiiInt32 | IntMinMax (xiiInt32 &inout_iPosition, xiiInt32 iMinValue, xiiInt32 iMaxValue, xiiUInt32 uiSeed) |
| static float | FloatZeroToOne (xiiInt32 &inout_iPosition, xiiUInt32 uiSeed) |
| static float | FloatMinMax (xiiInt32 &inout_iPosition, float fMinValue, float fMaxValue, xiiUInt32 uiSeed) |
| static xiiVec3 | Vec3MinMax (xiiInt32 &inout_iPosition, const xiiVec3 &vMinValue, const xiiVec3 &vMaxValue, xiiUInt32 uiSeed) |
Script extension class providing deterministic random number generation for scripts.
Generates reproducible random sequences using a seed and position-based approach. The same seed and position sequence will always produce identical results, which is essential for deterministic gameplay and debugging.
|
static |
Generates a random float within the specified range.
| inout_iPosition | Current position in the random sequence, automatically incremented. |
| fMinValue | Minimum value (inclusive). |
| fMaxValue | Maximum value (inclusive). |
| uiSeed | Random seed to use for generation. |
|
static |
Generates a random float between 0.0 and 1.0.
| inout_iPosition | Current position in the random sequence, automatically incremented. |
| uiSeed | Random seed to use for generation. |
|
static |
Generates a random integer within the specified range.
| inout_iPosition | Current position in the random sequence, automatically incremented. |
| iMinValue | Minimum value (inclusive). |
| iMaxValue | Maximum value (inclusive). |
| uiSeed | Random seed to use for generation. |
|
static |
Generates a random 3D vector with components within the specified ranges.
| inout_iPosition | Current position in the random sequence, automatically incremented. |
| vMinValue | Minimum values for each component (inclusive). |
| vMaxValue | Maximum values for each component (inclusive). |
| uiSeed | Random seed to use for generation. |