VPRandomNumberGeneratorFactory GetRandomNumberGenerator Method (RandomNumberGeneratorType, Int32)Virtual Photonics - VTS Library
Virtual Photonics
Returns an instance of the desired random number generator

Namespace: Vts.MonteCarlo.Factories
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax

public static Random GetRandomNumberGenerator(
	RandomNumberGeneratorType type,
	int seed
)

Parameters

type
Type: Vts RandomNumberGeneratorType
RandomNumberGeneratorType enum
seed
Type: OnlineSystem Int32
integer seed for the RNG, seed=-1 -> random seed, otherwise seeded with input seed

Return Value

Type: OnlineRandom
Random
See Also