This function is a slightly faster version of
runifpoint
for the special case where the window is a rectangle.
The function generates n independent random points,
uniformly distributed in the window win,
by assigning uniform random values to the cartesian coordinates.
For normal usage we recommend runifpoint
because it is more flexible.
However, runifrect is slightly faster (when the window is a rectangle),
and may be preferable in very computationally-demanding tasks.