C# Class QuickCheck.Random.RandomRange

Afficher le fichier Open project: jystic/quickcheck-net

Méthodes publiques

Méthode Description
Range ( this random, Byte x1, Byte x2 ) : Byte

Generate a uniformly distributed Byte in the range [x1, x2].

Range ( this random, Int16 x1, Int16 x2 ) : Int16

Generate a uniformly distributed Int16 in the range [x1, x2].

Range ( this random, Int32 x1, Int32 x2 ) : Int32

Generate a uniformly distributed Int32 in the range [x1, x2].

Range ( this random, System.Int64 x1, System.Int64 x2 ) : System.Int64

Generate a uniformly distributed Int64 in the range [x1, x2].

Range ( this random, SByte x1, SByte x2 ) : SByte

Generate a uniformly distributed SByte in the range [x1, x2].

Range ( this random, UInt16 x1, UInt16 x2 ) : UInt16

Generate a uniformly distributed UInt16 in the range [x1, x2].

Range ( this random, UInt32 x1, UInt32 x2 ) : UInt32

Generate a uniformly distributed UInt32 in the range [x1, x2].

Range ( this random, System.UInt64 x1, System.UInt64 x2 ) : System.UInt64

Generate a uniformly distributed UInt64 in the range [x1, x2].

Range ( this random, bool x1, bool x2 ) : bool

Generate a uniformly distributed bool in the range [x1, x2].

Range ( this random, double x1, double x2 ) : double

Generate a uniformly distributed double in the range [x1, x2].

Range ( this random, float x1, float x2 ) : float

Generate a uniformly distributed float in the range [x1, x2].

Private Methods

Méthode Description
Add ( Int32 x, UInt32 y ) : Int32
Add ( System.Int64 x, System.UInt64 y ) : System.Int64
Sub ( Int32 x, Int32 y ) : UInt32
Sub ( System.Int64 x, System.Int64 y ) : System.UInt64

Method Details

Range() public static méthode

Generate a uniformly distributed Byte in the range [x1, x2].
public static Range ( this random, Byte x1, Byte x2 ) : Byte
random this
x1 Byte
x2 Byte
Résultat Byte

Range() public static méthode

Generate a uniformly distributed Int16 in the range [x1, x2].
public static Range ( this random, Int16 x1, Int16 x2 ) : Int16
random this
x1 System.Int16
x2 System.Int16
Résultat System.Int16

Range() public static méthode

Generate a uniformly distributed Int32 in the range [x1, x2].
public static Range ( this random, Int32 x1, Int32 x2 ) : Int32
random this
x1 System.Int32
x2 System.Int32
Résultat System.Int32

Range() public static méthode

Generate a uniformly distributed Int64 in the range [x1, x2].
public static Range ( this random, System.Int64 x1, System.Int64 x2 ) : System.Int64
random this
x1 System.Int64
x2 System.Int64
Résultat System.Int64

Range() public static méthode

Generate a uniformly distributed SByte in the range [x1, x2].
public static Range ( this random, SByte x1, SByte x2 ) : SByte
random this
x1 SByte
x2 SByte
Résultat SByte

Range() public static méthode

Generate a uniformly distributed UInt16 in the range [x1, x2].
public static Range ( this random, UInt16 x1, UInt16 x2 ) : UInt16
random this
x1 System.UInt16
x2 System.UInt16
Résultat System.UInt16

Range() public static méthode

Generate a uniformly distributed UInt32 in the range [x1, x2].
public static Range ( this random, UInt32 x1, UInt32 x2 ) : UInt32
random this
x1 System.UInt32
x2 System.UInt32
Résultat System.UInt32

Range() public static méthode

Generate a uniformly distributed UInt64 in the range [x1, x2].
public static Range ( this random, System.UInt64 x1, System.UInt64 x2 ) : System.UInt64
random this
x1 System.UInt64
x2 System.UInt64
Résultat System.UInt64

Range() public static méthode

Generate a uniformly distributed bool in the range [x1, x2].
public static Range ( this random, bool x1, bool x2 ) : bool
random this
x1 bool
x2 bool
Résultat bool

Range() public static méthode

Generate a uniformly distributed double in the range [x1, x2].
public static Range ( this random, double x1, double x2 ) : double
random this
x1 double
x2 double
Résultat double

Range() public static méthode

Generate a uniformly distributed float in the range [x1, x2].
public static Range ( this random, float x1, float x2 ) : float
random this
x1 float
x2 float
Résultat float