C# Class X.Viewer.UrhoSharp.RandomHelper

Mostra file Open project: liquidboy/X

Public Methods

Method Description
NextRandom ( ) : float

Return a random float between 0.0 (inclusive) and 1.0 (exclusive.)

NextRandom ( float range ) : float

Return a random float between 0.0 and range, inclusive from both ends.

NextRandom ( float min, float max ) : float

Return a random float between min and max, inclusive from both ends.

NextRandom ( int min, int max ) : int

Return a random integer between min and max - 1.

Method Details

NextRandom() public static method

Return a random float between 0.0 (inclusive) and 1.0 (exclusive.)
public static NextRandom ( ) : float
return float

NextRandom() public static method

Return a random float between 0.0 and range, inclusive from both ends.
public static NextRandom ( float range ) : float
range float
return float

NextRandom() public static method

Return a random float between min and max, inclusive from both ends.
public static NextRandom ( float min, float max ) : float
min float
max float
return float

NextRandom() public static method

Return a random integer between min and max - 1.
public static NextRandom ( int min, int max ) : int
min int
max int
return int