public override IEnumerable <T> Sample() { while (true) { var success = math.lt(Polyrand.Next <double>(), Spec.Success) ? One : Zero; yield return(success); } }
public override IEnumerable <T> Sample() => Polyrand.SampleBinomial(Spec.Trials, Spec.Success);