![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Functions | |
| void | ResetRandomSeed () |
| TArray< int32 > | MakeIndexArray (int32 Size) |
| template<typename T > | |
| TArray< T > | MakeRandomSubset (const TArray< T > &InArray, int32 Size) |
| template<typename T > | |
| void | Shuffle (TArray< T > &OutArray) |
Variables | |
| constexpr int32 | DefaultRandomSeed = 283281277 |
Returns an array with the parameter number of sequentially increased index values starting from zero. This method is equivalent to using std::iota with a zero starting value in a sequential container.
| TArray< T > Test::MakeRandomSubset | ( | const TArray< T > & | InArray, |
| int32 | Size | ||
| ) |
Returns an array with a subset of the elements in the parameter input array. The subset size is expressed by the parameter size which must be smaller than the number of elements in the input array.
| void Test::ResetRandomSeed | ( | ) |
Performs a number of randomized swaps in the parameter array equivalent to its number of elements.