(min, max)
| 99 | // Custom seeded random number generator for reproducible test coordinates |
| 100 | let seed = 0x1337; |
| 101 | function seededRandom(min, max) { |
| 102 | seed = (seed * 9301 + 49297) % 233280; |
| 103 | const rnd = seed / 233280; |
| 104 | return min + rnd * (max - min); |
| 105 | } |
| 106 | |
| 107 | // Generate random coordinate within the defined bounding box |
| 108 | function getRandomCoordinate() { |
no outgoing calls
no test coverage detected