Make sure the probability is between 0 and 1