(min, max)
| 11 | const assert = require('assert'); |
| 12 | |
| 13 | function randInt(min, max) { |
| 14 | return Math.floor(Math.random() * (max - min + 1)) + min; |
| 15 | } |
| 16 | |
| 17 | function choose(probability) { |
| 18 | return Math.random() < probability; |
no test coverage detected