C# 클래스 Faker.Number

Number class used to generate random numbers
파일 보기 프로젝트 열기: FermJacob/Faker.Data

공개 메소드들

메소드 설명
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

메소드 상세

Bool() 공개 정적인 메소드

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

Double() 공개 정적인 메소드

Gets the next double
public static Double ( ) : double
리턴 double

Even() 공개 정적인 메소드

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

NegativeNumber() 공개 정적인 메소드

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

NextBytes() 공개 정적인 메소드

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

Odd() 공개 정적인 메소드

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

RandomNumber() 공개 정적인 메소드

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

RandomNumber() 공개 정적인 메소드

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

RandomNumber() 공개 정적인 메소드

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

RandomNumber() 공개 정적인 메소드

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