Uniformly samples a 2D position from a square with coordinates in the range -extents to +extents.
extents
This is an extension method. This method acts like a member of Random.