// sigma >= 0, better keep it low private double GetSigma(ISigmaDistribution <double> d) { if (d != null) { return(d.Sigma); } double s; do { s = Rand.NextDouble(); } while (TMath.IsZero(s)); return(s); }