(min, max)
| 222 | |
| 223 | // Generates a random number between min (inclusive) and max (exclusive) |
| 224 | const random = (min, max) => Math.random() * (max - min) + min; |
| 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; |
no outgoing calls
no test coverage detected