(min: number, max: number)
| 37 | } |
| 38 | |
| 39 | function getRandomInteger(min: number, max: number) { |
| 40 | const intMin = Math.ceil(min); |
| 41 | const intMax = Math.floor(max); |
| 42 | return Math.floor(Math.random() * (intMax - intMin + 1)) + intMin; |
| 43 | } |
| 44 | |
| 45 | export function getRandomPortNumber() { |
| 46 | return getRandomInteger(8000, 9999); |
no test coverage detected
searching dependent graphs…