(min: number, max: number)
| 463 | } |
| 464 | |
| 465 | export function getRandomInt(min: number, max: number) { |
| 466 | min = Math.ceil(min); |
| 467 | max = Math.floor(max); |
| 468 | return Math.floor(Math.random() * (max - min)) + min; |
| 469 | } |
| 470 | |
| 471 | export function mkDirRecursive(folder: string) { |
| 472 | const parent = path.dirname(folder); |
no outgoing calls