Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.vxRandom Class Reference

Random Value Generator. More...

Static Public Member Functions

static float GetRandomValue ()
 Returns a random float between 0.0 and 1.0.
 
static Vector2 GetRandomVector2 ()
 
static Vector3 GetRandomVector3 (bool isNormalised=true)
 
static float GetRandomValue (int min, int max)
 Returns a random value between the min and max.
 
static T GetRandomEnum< T > ()
 Returns a random value from an enum.
 
static Color GetRandomColour ()
 
static int NextInt (int n)
 

Detailed Description

Random Value Generator.

Member Function Documentation

◆ GetRandomEnum< T >()

static T VerticesEngine.vxRandom.GetRandomEnum< T > ( )
static

Returns a random value from an enum.

Template Parameters
T
Returns
Type Constraints
T :IConvertible 

◆ GetRandomValue() [1/2]

static float VerticesEngine.vxRandom.GetRandomValue ( )
static

Returns a random float between 0.0 and 1.0.

Returns

◆ GetRandomValue() [2/2]

static float VerticesEngine.vxRandom.GetRandomValue ( int min,
int max )
static

Returns a random value between the min and max.

Parameters
min
max
Returns

The documentation for this class was generated from the following file: