C# Class SEToolbox.Support.RandomUtil

显示文件 Open project: midspace/SEToolbox

Private Properties

Property Type Description

Public Methods

Method Description
GetDouble ( double minValue, double maxValue ) : double

Returns a random number within a specified range.

GetInt ( int maxValue ) : int

Returns a nonnegative random number less than the specified maximum.

GetInt ( int minValue, int maxValue ) : int

Returns a random number within a specified range.

GetRandomFloat ( float minValue, float maxValue ) : float

Returns a random number within a specified range.

Method Details

GetDouble() public static method

Returns a random number within a specified range.
public static GetDouble ( double minValue, double maxValue ) : double
minValue double minValue is the inclusive lower bound of the random number returned.
maxValue double maxValue is the exclusive upper bound of the random number returned.
return double

GetInt() public static method

Returns a nonnegative random number less than the specified maximum.
public static GetInt ( int maxValue ) : int
maxValue int The exclusive upper bound of the random number to be generated. maxValue must be greater than or equal to zero.
return int

GetInt() public static method

Returns a random number within a specified range.
public static GetInt ( int minValue, int maxValue ) : int
minValue int minValue is the inclusive lower bound of the random number returned.
maxValue int maxValue is the exclusive upper bound of the random number returned.
return int

GetRandomFloat() public static method

Returns a random number within a specified range.
public static GetRandomFloat ( float minValue, float maxValue ) : float
minValue float minValue is the inclusive lower bound of the random number returned.
maxValue float maxValue is the exclusive upper bound of the random number returned.
return float