Returns a random point within a rectangle.
By default creates a uniform distribution.
const pt = randomPoint({width: 5, height: 10}); Copy
const pt = randomPoint({width: 5, height: 10});
Rectangle to generate a point within
Options
Returns a random point within a rectangle.
By default creates a uniform distribution.