Click or drag to resize

IntRandomBinomialDistribution(Int32, Double) Constructor

Constructs a random number generator for a discrete binomial distribution using the specified number of independent trials and probability of success on each trial.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public IntRandomBinomialDistribution(
	int numberOfTrials,
	double probability
)

Parameters

numberOfTrials  Int32
Number of independent trials.
probability  Double
The probability of success on each trial.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if numberOfTrials less than 0 or probability less than 0 or greater than 1.
See Also