developing random null case

working on a way to permutate 1000 times to get the median distance