core.libraries.sh_weightedrandom
(no description)
Functions
Add(data)
View source »Add a new set of data, optionally with weight.
Parameters
-
data
Any
data. If a table, the .weight field is taken as the weight.
New()
View source »Create a new weighted random table instance.
Random()
View source »Pull out a random value from the table, respecting the weights of the table.