fix DivideByZeroException in Random.Next()