C# Class RobustArithmetic.Test.Util.RandomDouble

Show file Open project: govert/RobustGeometry.NET Class Usage Examples

Public Methods

Method Description
NextDoubleFullRange ( ) : double

Returns a random double from the full range of possible double values. The sign, mantissa and the exponent are independent random numbers, thus the distribution of numbers is not uniform.

NextDoubleValidRange ( ) : double
RandomDouble ( int seed = null ) : System

Private Methods

Method Description
NextBool ( ) : bool
NextLong ( int numBits ) : long

Method Details

NextDoubleFullRange() public method

Returns a random double from the full range of possible double values. The sign, mantissa and the exponent are independent random numbers, thus the distribution of numbers is not uniform.
public NextDoubleFullRange ( ) : double
return double

NextDoubleValidRange() public method

public NextDoubleValidRange ( ) : double
return double

RandomDouble() public method

public RandomDouble ( int seed = null ) : System
seed int
return System