* Randomly generates and returns a number between a and b (inclusive). * * @param {Number} a * @param {Number} b * @return {Number}
(a, b)
| 208 | * @return {Number} |
| 209 | */ |
| 210 | randInt(a, b) { |
| 211 | return a + Math.floor(Math.random() * (1 + b - a)); |
| 212 | } |
| 213 | |
| 214 | |
| 215 | /** |
no outgoing calls
no test coverage detected