Skip to content

@technobuddha > library > Random

Pick

NameTypeDescription
randomDrawFunctionDraw a random item from a list. Returning both the item and the list without the drawn item.
randomPickFunctionPick a random items from a list.
randomWeightedPickFunctionSelects a random item from a list, where each item has an associated weight that determines its likelihood of being picked.
WeightedTypeRepresents an object with an associated weight value.