public double NextValue() { double result; if (next == null) { var uinD = uin.NextValue(); var weibD = weib.NextValue(); next = weibD * Math.Cos(uinD); result = weibD * Math.Sin(uinD); } else { result = next.Value; next = null; } return(result); }
public double NextValue() { return(Math.Pow(-Math.Log(1 - dist.NextValue()) / lambda, 1 / alpha)); }