distance test for the random distribution needs to take PBCs into account as well
Add PBS to random distribution spacing check (#2965)