GLRandom Class |
Namespace: Gamelogic.Extensions
[VersionAttribute(1, 2, 0)] public static class GLRandom
The GLRandom type exposes the following members.
Name | Description | |
---|---|---|
Bool |
Generates a random bool, true with the given probability.
| |
GetRandom |
Gets a new random generator.
| |
GetRandom(Int32) |
Gets a new random generator.
| |
RandomOffset |
Gives a random value within a given range centered around a given value.
| |
Range(Int32) |
Generates a Random integer between 0 inclusive and the given max, exclusive.
| |
Range(Single) |
Generates a Random float between 0.0f inclusive and the given max
| |
Range(Int32, Int32) |
Generates a Random integer between the given min inclusive and the given max, exclusive.
| |
Range(Single, Single) |
Generates a Random float between the given min inclusive and the given max, exclusive.
| |
Sign |
Generates either -1.0f or 1.0f randomly.
|
Name | Description | |
---|---|---|
GlobalRandom |
Globally accessible Random object for random calls
|