C# Class SharpPcap.Util.Rand

Afficher le fichier Open project: Zepheus/Fiesta_Utils Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static CreateInstance ( ) : Rand
Résultat Rand

GetBytes() public méthode

public GetBytes ( byte bytes ) : byte[]
bytes byte
Résultat byte[]

GetBytes() public méthode

public GetBytes ( int size ) : byte[]
size int
Résultat byte[]

GetDouble() public méthode

public GetDouble ( ) : double
Résultat double

GetInt() public méthode

public GetInt ( ) : int
Résultat int

GetInt() public méthode

public GetInt ( int max ) : int
max int
Résultat int

GetInt() public méthode

public GetInt ( int min, int max ) : int
min int
max int
Résultat int

GetLong() public méthode

public GetLong ( ) : long
Résultat long

GetLong() public méthode

public GetLong ( long max ) : long
max long
Résultat long

GetLong() public méthode

public GetLong ( long min, long max ) : long
min long
max long
Résultat long

GetSeed() public static méthode

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.
Résultat byte[]