C# Class RandomOps.Switcher

Randomly switch between different RNGs. Thread-safe if RNGs are thread-safe.
This basically just implements the SelectRand() method from the RandMulti-class.
Inheritance: Multi
Afficher le fichier Open project: DanWBR/dwsim3

Méthodes publiques

Méthode Description
Switcher ( Random randSwitch, Random rands )

Constructs the RNG-object from other RNGs.

Méthodes protégées

Méthode Description
SelectRand ( ) : int

Determine which RNG in RandMulti to use.

Method Details

SelectRand() protected méthode

Determine which RNG in RandMulti to use.
protected SelectRand ( ) : int
Résultat int

Switcher() public méthode

Constructs the RNG-object from other RNGs.
public Switcher ( Random randSwitch, Random rands )
randSwitch Random The RNG that will be used to determine switching.
rands Random The RNGs to switch between.