(min, max)
| 225 | |
| 226 | // Generates a random integer between and possibly including min and max values |
| 227 | const randomInt = (min, max) => ((Math.random() * (max - min + 1)) | 0) + min; |
| 228 | |
| 229 | // Returns a random element from an array |
| 230 | const pickOne = arr => arr[Math.random() * arr.length | 0]; |
nothing calls this directly
no outgoing calls
no test coverage detected