Click or drag to resize

GLRandom Methods

The GLRandom type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBool
Generates a random bool, true with the given probability.
Public methodStatic memberGetRandom
Gets a new random generator.
Public methodStatic memberGetRandom(Int32)
Gets a new random generator.
Public methodStatic memberRandomOffset
Gives a random value within a given range centered around a given value.
Public methodStatic memberRange(Int32)
Generates a Random integer between 0 inclusive and the given max, exclusive.
Public methodStatic memberRange(Single)
Generates a Random float between 0.0f inclusive and the given max
Public methodStatic memberRange(Int32, Int32)
Generates a Random integer between the given min inclusive and the given max, exclusive.
Public methodStatic memberRange(Single, Single)
Generates a Random float between the given min inclusive and the given max, exclusive.
Public methodStatic memberSign
Generates either -1.0f or 1.0f randomly.
Top
See Also