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