Constructor for G05State class

Syntax

C#
public G05State(
	int genid,
	int subid,
	out int ifail
)
Visual Basic
Public Sub New ( _
	genid As Integer, _
	subid As Integer, _
	<OutAttribute> ByRef ifail As Integer _
)
Visual C++
public:
G05State(
	int genid, 
	int subid, 
	[OutAttribute] int% ifail
)
F#
new : 
        genid : int * 
        subid : int * 
        ifail : int byref -> G05State

Parameters

genid
Type: System..::..Int32
On entry: must contain the type of base generator to use.
genid=1
NAG basic generator.
genid=2
Wichmann Hill I generator.
genid=3
Mersenne Twister.
genid=4
Wichmann Hill II generator.
genid=5
ACORN generator.
genid=6
L'Ecuyer MRG32k3a generator.
See the G05 class for details of each of the base generators.
Constraint: genid=1, 2, 3, 4, 5 or 6.
subid
Type: System..::..Int32
On entry: if genid=2, subid indicates which of the 273 sub-generators to use. In this case, the subid+272 mod 273+1 sub-generator is used.
If genid=5, subid indicates the values of k and p to use, where k is the order of the generator, and p controls the size of the modulus, M, with M=2p×30. If subid<1, the default values of k=10 and p=2 are used, otherwise values for k and p are calculated from the formula, subid=k+1000p-1.
If genid=6 and subid mod 2=0 the range of the generator is set to 0,1, otherwise the range is set to 0,1; in this case the sequence is identical to the implementation of MRG32k3a in TestU01 (see L'Ecuyer and Simard (2002)) for identical seeds.
For all other values of genid, subid is not referenced.
ifail
Type: System..::..Int32%
On exit: ifail=0 or -1 unless the method detects an error or a warning has been flagged (see [Error Indicators and Warnings]).

See Also