C# Class Faker.Number

Number class used to generate random numbers
Exibir arquivo Open project: FermJacob/Faker.Data

Public Methods

Method 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 method

Gets a random boolean value
public static Bool ( ) : bool
return bool

Double() public static method

Gets the next double
public static Double ( ) : double
return double

Even() public static method

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

NegativeNumber() public static method

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

NextBytes() public static method

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

Odd() public static method

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

RandomNumber() public static method

Gets a random number from 0 to any
public static RandomNumber ( ) : int
return int

RandomNumber() public static method

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

RandomNumber() public static method

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

RandomNumber() public static method

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