randomMultipleFromArray
randomMultipleFromArray(random, source, target, count) ⇒ number
Pick multiple random items from an array
Kind: global function
Returns: number - number of picked elements
| Param | Type | Description |
|---|---|---|
| random | function | random function, must return a value between 0 and 1 |
| source | Array.<T> | Where to pick elements from |
| target | Array.<T> | Where to place picked elements |
| count | number | how many items to pick, if this number is greater than the length of source, it will be limited to length of source instead |