(min: number, max: number)
| 40 | } |
| 41 | |
| 42 | function randomCoordinate(min: number, max: number): number { |
| 43 | return min + (secureRandomInt(0, 1_000_000) / 1_000_000) * (max - min); |
| 44 | } |
| 45 | |
| 46 | function pickRandom<T>(arr: T[], rand: number): T { |
| 47 | return arr[Math.floor(rand * arr.length)]; |
no outgoing calls
no test coverage detected