g.Point.random(x1, x2, y1, y2)

Returns a new point object with random coordinates that fall within the range [x1, x2] and [y1, y2].