Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FWeightedRandomSampler
Description
Takes two random values (0...1) and returns the corresponding element index. Returns INDEX_NONE if there are no entries.
| Name | GetEntryIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/WeightedRandomSampler.h |
| Include Path | #include "WeightedRandomSampler.h" |
int32 GetEntryIndex
(
float R0,
float R1
) const