weightedPick(ary) → {any}
Returns a random member of array
, favoring the earlier entries.
Parameters
Name | Type | Description |
---|---|---|
ary | Array | An Array to pick a random member of. |
Returns
any -
A random member of the array.
- Source code: math/RandomDataGenerator.js (Line 283)
Please login to continue.