TreeNode 1.5.2
A library to manipulate phylogenetic trees
|
Represents a thread-safe random number generator. More...
Public Member Functions | |
ThreadSafeRandom (int seed) | |
Initialise a new thread-safe random number generator with the specified seed. More... | |
ThreadSafeRandom () | |
Initialise a new thread-safe random number generator. More... | |
override int | Next () |
override int | Next (int maxValue) |
override int | Next (int minValue, int maxValue) |
override double | NextDouble () |
override void | NextBytes (byte[] buffer) |
Represents a thread-safe random number generator.
Adapted from https://stackoverflow.com/questions/3049467/is-c-sharp-random-number-generator-thread-safe
Definition at line 10 of file ThreadSafeRandom.cs.
PhyloTree.TreeBuilding.ThreadSafeRandom.ThreadSafeRandom | ( | int | seed | ) |
Initialise a new thread-safe random number generator with the specified seed.
seed | A number used to generate a starting number for the pseudo-random sequence. |
Definition at line 22 of file ThreadSafeRandom.cs.
PhyloTree.TreeBuilding.ThreadSafeRandom.ThreadSafeRandom | ( | ) |
Initialise a new thread-safe random number generator.
Definition at line 34 of file ThreadSafeRandom.cs.
override int PhyloTree.TreeBuilding.ThreadSafeRandom.Next | ( | ) |
Definition at line 60 of file ThreadSafeRandom.cs.
override int PhyloTree.TreeBuilding.ThreadSafeRandom.Next | ( | int | maxValue | ) |
Definition at line 67 of file ThreadSafeRandom.cs.
override int PhyloTree.TreeBuilding.ThreadSafeRandom.Next | ( | int | minValue, |
int | maxValue | ||
) |
Definition at line 74 of file ThreadSafeRandom.cs.
override void PhyloTree.TreeBuilding.ThreadSafeRandom.NextBytes | ( | byte[] | buffer | ) |
Definition at line 88 of file ThreadSafeRandom.cs.
override double PhyloTree.TreeBuilding.ThreadSafeRandom.NextDouble | ( | ) |
Definition at line 81 of file ThreadSafeRandom.cs.