Added a if statement to custRand that checks if the number generated is zero or one and generates a new one if it is. This should hopefully eliminate a segfault that I believe if coming from trying to access linkedList[8*cutoff*1.0000]. 