PeterO.RandomGenerator.Geometric C# (CSharp) 메소드

Geometric() 공개 메소드

Conceptually, generates either 1 or 0 until a 1 is generated, and counts the number of 0's generated. Either number has an equal probability of being generated.
public Geometric ( ) : int
리턴 int
        public int Geometric()
        {
            return this.NegativeBinomial(1, 0.5);
        }

Same methods

RandomGenerator::Geometric ( double p ) : int