ToggleMoleculeRandomly

constructor(node: Node<T>, randomGenerator: RandomGenerator, molecule: Molecule, concentration: T, odds: Double)

Parameters

concentration type
node

the node containing the molecule to toggle

randomGenerator

random number generator to use

molecule

the molecule to toggle

concentration

the concentration to use for the "on" state

odds

probability to toggle the molecule every time the action is triggered