C# Class Faker.Number

Number class used to generate random numbers
Afficher le fichier Open project: FermJacob/Faker.Data

Méthodes publiques

Méthode Description
Bool ( ) : bool

Gets a random boolean value

Double ( ) : double

Gets the next double

Even ( int min, int max ) : int

Gets the next even number

NegativeNumber ( int max ) : int

Gets a random negative number. Pass in a positive value

NextBytes ( byte buffer ) : void

Method to get the next bytes

Odd ( int min, int max = 1 ) : int

Gets the next odd number

RandomNumber ( ) : int

Gets a random number from 0 to any

RandomNumber ( int max ) : int

Gets a random number from 0 to max variable

RandomNumber ( int min, int max ) : int

Gets a random number

RandomNumber ( long min, long max ) : long

Method to get a random long value

Method Details

Bool() public static méthode

Gets a random boolean value
public static Bool ( ) : bool
Résultat bool

Double() public static méthode

Gets the next double
public static Double ( ) : double
Résultat double

Even() public static méthode

Gets the next even number
public static Even ( int min, int max ) : int
min int Minimum value
max int Maximum value
Résultat int

NegativeNumber() public static méthode

Gets a random negative number. Pass in a positive value
public static NegativeNumber ( int max ) : int
max int Max number positive
Résultat int

NextBytes() public static méthode

Method to get the next bytes
public static NextBytes ( byte buffer ) : void
buffer byte A
Résultat void

Odd() public static méthode

Gets the next odd number
public static Odd ( int min, int max = 1 ) : int
min int Minimum value
max int Maximum value
Résultat int

RandomNumber() public static méthode

Gets a random number from 0 to any
public static RandomNumber ( ) : int
Résultat int

RandomNumber() public static méthode

Gets a random number from 0 to max variable
public static RandomNumber ( int max ) : int
max int Max integer to use
Résultat int

RandomNumber() public static méthode

Gets a random number
public static RandomNumber ( int min, int max ) : int
min int Minimum value
max int Maximum value
Résultat int

RandomNumber() public static méthode

Method to get a random long value
public static RandomNumber ( long min, long max ) : long
min long Minimum long
max long Maximum long
Résultat long