Click or drag to resize
RandomFloatingPoint Class
A static class of extension methods for generating random floating point numbers.
Inheritance Hierarchy
SystemObject
  Experilous.MakeItRandomRandomFloatingPoint

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static class RandomFloatingPoint

The RandomFloatingPoint type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDoubleC1O2
Returns a random floating point number greater than or equal to one and strictly less than two.
Public methodStatic memberDoubleC2O4
Returns a random floating point number greater than or equal to two and strictly less than four.
Public methodStatic memberDoubleCC
Returns a random floating point number greater than or equal to zero and less than or equal to one.
Public methodStatic memberDoubleCO
Returns a random floating point number greater than or equal to zero and strictly less than one.
Public methodStatic memberDoubleOC
Returns a random floating point number strictly greater than zero and less than or equal to one.
Public methodStatic memberDoubleOO
Returns a random floating point number strictly greater than zero and strictly less than one.
Public methodStatic memberFloatC1O2
Returns a random floating point number greater than or equal to one and strictly less than two.
Public methodStatic memberFloatC2O4
Returns a random floating point number greater than or equal to two and strictly less than four.
Public methodStatic memberFloatCC
Returns a random floating point number greater than or equal to zero and less than or equal to one.
Public methodStatic memberFloatCO
Returns a random floating point number greater than or equal to zero and strictly less than one.
Public methodStatic memberFloatOC
Returns a random floating point number strictly greater than zero and less than or equal to one.
Public methodStatic memberFloatOO
Returns a random floating point number strictly greater than zero and strictly less than one.
Public methodStatic memberPreciseDoubleCC
Returns a random floating point number greater than or equal to zero and less than or equal to one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseDoubleCO
Returns a random floating point number greater than or equal to zero and strictly less than one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseDoubleOC
Returns a random floating point number strictly greater than zero and less than or equal to one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseDoubleOO
Returns a random floating point number greater than zero and strictly less than one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseFloatCC
Returns a random floating point number greater than or equal to zero and less than or equal to one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseFloatCO
Returns a random floating point number greater than or equal to zero and strictly less than one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseFloatOC
Returns a random floating point number strictly greater than zero and less than or equal to one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseFloatOO
Returns a random floating point number greater than zero and strictly less than one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeCC(IRandom, Double)
Returns a random double greater than or equal to zero and less than or equal to upperInclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeCC(IRandom, Single)
Returns a random float greater than or equal to zero and less than or equal to upperInclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeCC(IRandom, Double, Double)
Returns a random double greater than or equal to lowerInclusive and less than or equal to upperInclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeCC(IRandom, Single, Single)
Returns a random float greater than or equal to lowerInclusive and less than or equal to upperInclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeCO(IRandom, Double)
Returns a random double greater than or equal to zero and strictly less than upperExclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeCO(IRandom, Single)
Returns a random float greater than or equal to zero and strictly less than upperExclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeCO(IRandom, Double, Double)
Returns a random double greater than or equal to lowerInclusive and strictly less than upperExclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeCO(IRandom, Single, Single)
Returns a random float greater than or equal to lowerInclusive and strictly less than upperExclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeOC(IRandom, Double)
Returns a random double strictly greater than zero and less than or equal to upperInclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeOC(IRandom, Single)
Returns a random float strictly greater than zero and less than or equal to upperInclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeOC(IRandom, Double, Double)
Returns a random double strictly greater than lowerExclusive and less than or equal to upperInclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeOC(IRandom, Single, Single)
Returns a random float strictly greater than lowerExclusive and less than or equal to upperInclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeOO(IRandom, Double)
Returns a random float strictly greater than zero and strictly less than upperExclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeOO(IRandom, Single)
Returns a random float strictly greater than zero and strictly less than upperExclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeOO(IRandom, Double, Double)
Returns a random double strictly greater than lowerExclusive and strictly less than upperExclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseRangeOO(IRandom, Single, Single)
Returns a random float strictly greater than lowerExclusive and strictly less than upperExclusive, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseSignedDoubleCC
Returns a random floating point number greater than or equal to negative one and less than or equal to positive one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseSignedDoubleCO
Returns a random floating point number greater than or equal to negative one and strictly less than positive one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseSignedDoubleOC
Returns a random floating point number strictly greater than negative one and less than or equal to positive one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseSignedDoubleOO
Returns a random floating point number strictly greater than negative one and strictly less than positive one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseSignedFloatCC
Returns a random floating point number greater than or equal to negative one and less than or equal to positive one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseSignedFloatCO
Returns a random floating point number greater than or equal to negative one and strictly less than positive one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseSignedFloatOC
Returns a random floating point number strictly greater than negative one and less than or equal to positive one, with no precision loss as numbers get closer to zero.
Public methodStatic memberPreciseSignedFloatOO
Returns a random floating point number strictly greater than negative one and strictly less than positive one, with no precision loss as numbers get closer to zero.
Public methodStatic memberRangeCC(IRandom, Double)
Returns a random double greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Single)
Returns a random float greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Double, Double)
Returns a random double greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Single, Single)
Returns a random float greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCO(IRandom, Double)
Returns a random double greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Single)
Returns a random float greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Double, Double)
Returns a random double greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Single, Single)
Returns a random float greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOC(IRandom, Double)
Returns a random double strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Single)
Returns a random float strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Double, Double)
Returns a random double strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Single, Single)
Returns a random float strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOO(IRandom, Double)
Returns a random float strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Single)
Returns a random float strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Double, Double)
Returns a random double strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Single, Single)
Returns a random float strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberSignedDoubleCC
Returns a random floating point number greater than or equal to zero and less than or equal to one.
Public methodStatic memberSignedDoubleCO
Returns a random floating point number greater than or equal to zero and strictly less than one.
Public methodStatic memberSignedDoubleOC
Returns a random floating point number strictly greater than zero and less than or equal to one.
Public methodStatic memberSignedDoubleOO
Returns a random floating point number strictly greater than zero and strictly less than one.
Public methodStatic memberSignedFloatCC
Returns a random floating point number greater than or equal to zero and less than or equal to one.
Public methodStatic memberSignedFloatCO
Returns a random floating point number greater than or equal to zero and strictly less than one.
Public methodStatic memberSignedFloatOC
Returns a random floating point number strictly greater than zero and less than or equal to one.
Public methodStatic memberSignedFloatOO
Returns a random floating point number strictly greater than zero and strictly less than one.
Top
See Also