Documentation > Mesh Ops Plugin BPLibrary > Weighted Random

Weighted Random

Gets a weighted random value from a Map. The result is a key from the map which should represent the chosen result as an index in an array.

Inputs

In
Exec

Map
Map of Integers to Integers

Seed
Integer

Outputs

Out
Exec

Return Value
Integer

Gets a weighted random value from a Map. The result is a key from the map which should represent the chosen result as an index in an array.