Constructs a random number generator with the specified lower and upper bounds.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public IntRandomUniformDistribution( int lower, int upper, IntRandomUniformDistribution..::.GenerationMethod method ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ lower As Integer, _ upper As Integer, _ method As IntRandomUniformDistribution..::.GenerationMethod _ ) |
| Visual C++ |
|---|
public: IntRandomUniformDistribution( int lower, int upper, IntRandomUniformDistribution..::.GenerationMethod method ) |
Parameters
- lower
- Type: System..::.Int32
The lower bound.
- upper
- Type: System..::.Int32
The upper bound.
- method
- Type: CenterSpace.NMath.Core..::.IntRandomUniformDistribution..::.GenerationMethod
Generation method. Fast or Accurate.
Remarks
Generates random numbers uniformly distributed over the interval [a, b), where a, b are the left
and right bounds of the interval respectively.