weightedRandomFromArray
Constants
- scratch_weights :
Array.<number>
Functions
scratch_weights : Array.<number>
Kind: global constant
weightedRandomFromArray(array, random, weight, [weightContext], [length]) ⇒ T
| undefined
Kind: global function
Param | Type |
---|---|
array | Array.<T> |
random | function |
weight | function |
[weightContext] | * |
[length] | number |