UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Test Namespace Reference

Functions

void ResetRandomSeed ()
 
TArray< int32MakeIndexArray (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
 

Function Documentation

◆ MakeIndexArray()

TArray< int32 > Test::MakeIndexArray ( int32  Size)

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.

◆ MakeRandomSubset()

template<typename T >
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.

◆ ResetRandomSeed()

void Test::ResetRandomSeed ( )

◆ Shuffle()

template<typename T >
void Test::Shuffle ( TArray< T > &  OutArray)

Performs a number of randomized swaps in the parameter array equivalent to its number of elements.

Variable Documentation

◆ DefaultRandomSeed

constexpr int32 Test::DefaultRandomSeed = 283281277
constexpr