The minimum x value of the range.
The maximum x value of the range.
The minimum y value of the range.
The maximum y value of the range.
A random 2D coordinate within the specified range.
const coordinate = RNG.coordinate(0, 100, -50, 50);
console.log(coordinate); // Output: e.g., { x: 75.123, y: 23.456 }
Generated using TypeDoc
Generate a random 2D coordinate within a specified range.