Fixing random point generation

Random point generation for projected windows that didn't cross the seam were not working. A test has been added and random points are generated within the window now.