C# Class SharpPcap.Util.Rand

Datei anzeigen Open project: Zepheus/Fiesta_Utils Class Usage Examples

Public Methods

Method Description
CreateInstance ( ) : Rand
GetBytes ( byte bytes ) : byte[]
GetBytes ( int size ) : byte[]
GetDouble ( ) : double
GetInt ( ) : int
GetInt ( int max ) : int
GetInt ( int min, int max ) : int
GetLong ( ) : long
GetLong ( long max ) : long
GetLong ( long min, long max ) : long
GetSeed ( int numberOfBytes ) : byte[]

Returns the given number of seed bytes generated for the first running of a new instance of the random number generator.

Method Details

CreateInstance() public static method

public static CreateInstance ( ) : Rand
return Rand

GetBytes() public method

public GetBytes ( byte bytes ) : byte[]
bytes byte
return byte[]

GetBytes() public method

public GetBytes ( int size ) : byte[]
size int
return byte[]

GetDouble() public method

public GetDouble ( ) : double
return double

GetInt() public method

public GetInt ( ) : int
return int

GetInt() public method

public GetInt ( int max ) : int
max int
return int

GetInt() public method

public GetInt ( int min, int max ) : int
min int
max int
return int

GetLong() public method

public GetLong ( ) : long
return long

GetLong() public method

public GetLong ( long max ) : long
max long
return long

GetLong() public method

public GetLong ( long min, long max ) : long
min long
max long
return long

GetSeed() public static method

Returns the given number of seed bytes generated for the first running of a new instance of the random number generator.
public static GetSeed ( int numberOfBytes ) : byte[]
numberOfBytes int Number of seed bytes to generate.
return byte[]