Constructs a random number generator for binomial distributions using the RandGenMTwist
class as the underlying uniform random number generator.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public RandGenBinomial( int trials, double probability ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ trials As Integer, _ probability As Double _ ) |
| Visual C++ |
|---|
public: RandGenBinomial( int trials, double probability ) |
Parameters
- trials
- Type: System..::.Int32
The total number of trials.
- probability
- Type: System..::.Double
The probability of success on each trial.