Navigation
API > API/Plugins > API/Plugins/AudioGameplay
FShuffleUtil - Utility to provide a fast random index in an array without replacement ie, all elements will be returned from GetNextIndex exactly once before repeating
| Name | FShuffleUtil |
| Type | struct |
| Header File | /Engine/Plugins/AudioGameplay/Source/AudioGameplay/Public/AudioGameplayShuffle.h |
| Include Path | #include "AudioGameplayShuffle.h" |
Syntax
struct FShuffleUtil
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint8 GetNextIndex() |
Returns next valid index, or INDEX_NONE if not initialized. Shuffles array if needed | AudioGameplayShuffle.h | |
void Initialize
(
int32 ArraySize |
Initializes the Shuffle Array | AudioGameplayShuffle.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Shuffle() |
Shuffles the internal array | AudioGameplayShuffle.h |