Creates a LeapfrogRandomStreams object from the given parameters.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public LeapfrogRandomStreams( int seed, RandomNumberStream..::.BasicRandGenType randGenType, int numStreams, int streamLen ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ seed As Integer, _ randGenType As RandomNumberStream..::.BasicRandGenType, _ numStreams As Integer, _ streamLen As Integer _ ) |
| Visual C++ |
|---|
public: LeapfrogRandomStreams( int seed, RandomNumberStream..::.BasicRandGenType randGenType, int numStreams, int streamLen ) |
Parameters
- seed
- Type: System..::.Int32
Basic random number generator seed.
- randGenType
- Type: CenterSpace.NMath.Core..::.RandomNumberStream..::.BasicRandGenType
Basic random number generator type. Must be one of RandomNumberStream.BasicRandGenType.MultiplicativeCongruent31, RandomNumberStream.BasicRandGenType.MultipleCongruential59, RandomNumberStream.BasicRandGenType.WinchannHillCombined.
- numStreams
- Type: System..::.Int32
Number of independent streams.
- streamLen
- Type: System..::.Int32
Length of each independent stream.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if randGenType is not one of the supported types. |