WebCab Probability and Statistics Web Services for .NET v3.3 Demo

BinomialProbabilityDistribution.GetRandomNumber Method 

A random number generated from the Binomial distribution.

public int GetRandomNumber();

Remarks

Before this method is called it is necesary to set the total number of trials and the probability of each of the trials being a successes using SetNumberOfTrials and SetProbabilityOfASuccess, respectively.

For a random number within the range [0,1] (i.e. a probability), we return the INTEGER value for which the cumulative Binomial distribution function is greater than or equal to the randomly generated number.

See Also

BinomialProbabilityDistribution Class | ProbabilityDistributions Namespace