C# Class Underscore.Utility.MathComponent

Inheritance: IMathComponent
ファイルを表示 Open project: konkked/Underscore.cs Class Usage Examples

Private Properties

Property Type Description
Abs int
InternalIsUnique bool
Max int
Min int
UniqueId string

Public Methods

Method Description
MathComponent ( ) : System
Random ( ) : int

Generates a random positive integer

Random ( int max ) : int

Generates a random integer between 0 and max

Random ( int min, int max ) : int

Generates a random integer in specified range

UniqueId ( string prefix ) : string

Generates a unique id, optionally prefixed by a string

Private Methods

Method Description
Abs ( int i ) : int
InternalIsUnique ( string uuid ) : bool
Max ( int x, int y ) : int
Min ( int x, int y ) : int
UniqueId ( ) : string

Method Details

MathComponent() public method

public MathComponent ( ) : System
return System

Random() public method

Generates a random positive integer
public Random ( ) : int
return int

Random() public method

Generates a random integer between 0 and max
public Random ( int max ) : int
max int Max of range, exclusive. Must be greater than 0
return int

Random() public method

Generates a random integer in specified range
public Random ( int min, int max ) : int
min int Min possible value
max int Max possible value, exclusive
return int

UniqueId() public method

Generates a unique id, optionally prefixed by a string
public UniqueId ( string prefix ) : string
prefix string
return string