Click or drag to resize

GLRandom Class

Some convenience functions for random bools and integers.
Inheritance Hierarchy
SystemObject
  Gamelogic.ExtensionsGLRandom

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(1, 2, 0)]
public static class GLRandom

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
Fields
  NameDescription
Public fieldStatic memberGlobalRandom
Globally accessible Random object for random calls
Top
See Also