![]() |
Dungeon Architect
17.0.0
|
A random stream based on normal distribution. Also support uniform distsribution More...
Public Member Functions | |
| PMRandom () | |
| Creates a new random stream with seed 0 More... | |
| PMRandom (uint seed) | |
| Creates a new random stream with the specified seed More... | |
| void | Initialize (uint seed) |
| Initializes the stream with the given seed More... | |
| float | NextGaussianFloat () |
| Gets the next random number from a uniform distribution More... | |
| float | NextGaussianFloat (float mean, float stdDev) |
| Gets the next random number from a uniform distribution More... | |
| UnityEngine.Vector2 | RandomPointOnCircle () |
| float | GetNextUniformFloat () |
| Gets a random number from the uniformly distributed stream More... | |
Properties | |
| Random | UniformRandom [get] |
A random stream based on normal distribution. Also support uniform distsribution
Definition at line 10 of file PMRandom.cs.
| DungeonArchitect.Utils.PMRandom.PMRandom | ( | ) |
Creates a new random stream with seed 0
Definition at line 27 of file PMRandom.cs.
| DungeonArchitect.Utils.PMRandom.PMRandom | ( | uint | seed | ) |
Creates a new random stream with the specified seed
| seed | The seed to initialize the random stream |
Definition at line 36 of file PMRandom.cs.
| float DungeonArchitect.Utils.PMRandom.GetNextUniformFloat | ( | ) |
Gets a random number from the uniformly distributed stream
Definition at line 86 of file PMRandom.cs.
| void DungeonArchitect.Utils.PMRandom.Initialize | ( | uint | seed | ) |
Initializes the stream with the given seed
| seed |
Definition at line 45 of file PMRandom.cs.
| float DungeonArchitect.Utils.PMRandom.NextGaussianFloat | ( | ) |
Gets the next random number from a uniform distribution
Definition at line 55 of file PMRandom.cs.
| float DungeonArchitect.Utils.PMRandom.NextGaussianFloat | ( | float | mean, |
| float | stdDev | ||
| ) |
Gets the next random number from a uniform distribution
| mean | The mean used for the normal distribution |
| stdDev | The standard deviation used for the normal distribution |
Definition at line 71 of file PMRandom.cs.