C# Class System.Random

显示文件 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
Next ( ) : int
Next ( int maxValue ) : int
Next ( int minValue, int maxValue ) : int
NextBytes ( byte buffer ) : void
NextDouble ( ) : double
Random ( ) : System
Random ( int Seed ) : System

Protected Methods

Method Description
Sample ( ) : double

Private Methods

Method Description
GetSampleForLargeRange ( ) : double
InternalSample ( ) : int

Method Details

Next() public method

public Next ( ) : int
return int

Next() public method

public Next ( int maxValue ) : int
maxValue int
return int

Next() public method

public Next ( int minValue, int maxValue ) : int
minValue int
maxValue int
return int

NextBytes() public method

public NextBytes ( byte buffer ) : void
buffer byte
return void

NextDouble() public method

public NextDouble ( ) : double
return double

Random() public method

public Random ( ) : System
return System

Random() public method

public Random ( int Seed ) : System
Seed int
return System

Sample() protected method

protected Sample ( ) : double
return double