![]() |
Ark Server API (ASA) - Wiki
|
#include <RandomStream.h>
Protected Member Functions | |
| void | MutateSeed () const |
Private Attributes | |
| int32 | InitialSeed |
| uint32 | Seed |
Friends | |
| struct | Z_Construct_UScriptStruct_FRandomStream_Statics |
Implements a thread-safe SRand based RNG.
Very bad quality in the lower bits. Don't use the modulus (%) operator.
Definition at line 19 of file RandomStream.h.
|
inline |
Default constructor.
The seed should be set prior to use.
Definition at line 30 of file RandomStream.h.
|
inline |
Creates and initializes a new random stream from the specified seed value.
| InSeed | The seed value. |
Definition at line 40 of file RandomStream.h.
Here is the call graph for this function:
|
inline |
Creates and initializes a new random stream from the specified name.
| InName | The name value from which the stream will be initialized. |
Definition at line 51 of file RandomStream.h.
Here is the call graph for this function:
|
inline |
Mirrors the random number API in FMath
Definition at line 176 of file RandomStream.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Helper function for rand implementations.
Definition at line 209 of file RandomStream.h.
|
inline |
Generates a new random seed.
Definition at line 105 of file RandomStream.h.
|
inline |
|
inline |
Returns a random float number in the range [0, 1).
Definition at line 115 of file RandomStream.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 97 of file RandomStream.h.
|
inline |
Returns a random vector of unit size.
Definition at line 143 of file RandomStream.h.
|
inline |
Returns a random number between 0 and MAXUINT.
Definition at line 131 of file RandomStream.h.
Here is the call graph for this function:Initializes this random stream using the specified name.
| InName | The name value from which the stream will be initialized. |
Definition at line 75 of file RandomStream.h.
Here is the call graph for this function:
Here is the caller graph for this function:Initializes this random stream with the specified seed value.
| InSeed | The seed value. |
Definition at line 63 of file RandomStream.h.
Here is the caller graph for this function:
|
inlineprotected |
Mutates the current seed into the next seed.
Definition at line 340 of file RandomStream.h.
Here is the caller graph for this function:
|
inline |
Helper function for rand implementations.
Definition at line 186 of file RandomStream.h.
Here is the caller graph for this function:
|
inline |
Definition at line 224 of file RandomStream.h.
|
inline |
Helper function for rand implementations.
Definition at line 197 of file RandomStream.h.
Here is the call graph for this function:
|
inline |
Resets this random stream to the initial seed value.
Definition at line 92 of file RandomStream.h.
|
inline |
Get a textual representation of the RandomStream.
Definition at line 330 of file RandomStream.h.
|
inline |
Returns a random vector of unit size.
Definition at line 219 of file RandomStream.h.
|
inline |
Returns a random unit vector, uniformly distributed, within the specified cone.
| Dir | The center direction of the cone |
| ConeHalfAngleRad | Half-angle of cone, in radians. |
Definition at line 238 of file RandomStream.h.
Here is the call graph for this function:
|
inline |
Returns a random unit vector, uniformly distributed, within the specified cone.
| Dir | The center direction of the cone |
| HorizontalConeHalfAngleRad | Horizontal half-angle of cone, in radians. |
| VerticalConeHalfAngleRad | Vertical half-angle of cone, in radians. |
Definition at line 283 of file RandomStream.h.
Here is the call graph for this function:Definition at line 21 of file RandomStream.h.
|
private |
Definition at line 348 of file RandomStream.h.
|
mutableprivate |
Definition at line 352 of file RandomStream.h.