Make It Random User's Manual

RandomRangeGenerator Class |

A static class of extension methods for generating random numbers within custom ranges.

Inheritance Hierarchy

Syntax

C#

public static class RandomRangeGenerator

The RandomRangeGenerator type exposes the following members.

Methods

Name | Description | |
---|---|---|

MakeByteGenerator | ||

MakeDoubleC1O2Generator |
Returns a range generator which will produce doubles greater than or equal to one and strictly less than two.
| |

MakeDoubleC2O4Generator |
Returns a range generator which will produce doubles greater than or equal to two and strictly less than four.
| |

MakeDoubleCCGenerator |
Returns a range generator which will produce doubles greater than or equal to zero and less than or equal to one.
| |

MakeDoubleCOGenerator |
Returns a range generator which will produce doubles greater than or equal to zero and strictly less than one.
| |

MakeDoubleOCGenerator |
Returns a range generator which will produce doubles strictly greater than zero and less than or equal to one.
| |

MakeDoubleOOGenerator |
Returns a range generator which will produce doubles strictly greater than zero and strictly less than one.
| |

MakeFloatC1O2Generator |
Returns a range generator which will produce floats greater than or equal to one and strictly less than two.
| |

MakeFloatC2O4Generator |
Returns a range generator which will produce floats greater than or equal to two and strictly less than four.
| |

MakeFloatCCGenerator |
Returns a range generator which will produce floats greater than or equal to zero and less than or equal to one.
| |

MakeFloatCOGenerator |
Returns a range generator which will produce floats greater than or equal to zero and strictly less than one.
| |

MakeFloatOCGenerator |
Returns a range generator which will produce floats strictly greater than zero and less than or equal to one.
| |

MakeFloatOOGenerator |
Returns a range generator which will produce floats strictly greater than zero and strictly less than one.
| |

MakeIntGenerator | ||

MakeLongGenerator | ||

MakePreciseDoubleCCGenerator |
Returns a range generator which will produce doubles greater than or equal to zero and less than or equal to one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseDoubleCOGenerator |
Returns a range generator which will produce doubles greater than or equal to zero and strictly less than one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseDoubleOCGenerator |
Returns a range generator which will produce doubles strictly greater than zero and less than or equal to one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseDoubleOOGenerator |
Returns a range generator which will produce doubles strictly greater than zero and strictly less than one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseFloatCCGenerator |
Returns a range generator which will produce floats greater than or equal to zero and less than or equal to one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseFloatCOGenerator |
Returns a range generator which will produce floats greater than or equal to zero and strictly less than one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseFloatOCGenerator |
Returns a range generator which will produce floats strictly greater than zero and less than or equal to one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseFloatOOGenerator |
Returns a range generator which will produce floats strictly greater than zero and strictly less than one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeCCGenerator(IRandom, Double) |
Returns a range generator which will produce doubles greater than or equal to zero and less than or equal to upperInclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeCCGenerator(IRandom, Single) |
Returns a range generator which will produce floats greater than or equal to zero and less than or equal to upperInclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeCCGenerator(IRandom, Double, Double) |
Returns a range generator which will produce doubles greater than or equal to lowerInclusive and less than or equal to upperInclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeCCGenerator(IRandom, Single, Single) |
Returns a range generator which will produce floats greater than or equal to lowerInclusive and less than or equal to upperInclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeCOGenerator(IRandom, Double) |
Returns a range generator which will produce doubles greater than or equal to zero and strictly less than upperExclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeCOGenerator(IRandom, Single) |
Returns a range generator which will produce floats greater than or equal to zero and strictly less than upperExclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeCOGenerator(IRandom, Double, Double) |
Returns a range generator which will produce doubles greater than or equal to lowerInclusive and strictly less than upperExclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeCOGenerator(IRandom, Single, Single) |
Returns a range generator which will produce floats greater than or equal to lowerInclusive and strictly less than upperExclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeOCGenerator(IRandom, Double) |
Returns a range generator which will produce doubles strictly greater than zero and less than or equal to upperInclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeOCGenerator(IRandom, Single) |
Returns a range generator which will produce floats strictly greater than zero and less than or equal to upperInclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeOCGenerator(IRandom, Double, Double) |
Returns a range generator which will produce doubles strictly greater than lowerExclusive and less than or equal to upperInclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeOCGenerator(IRandom, Single, Single) |
Returns a range generator which will produce floats strictly greater than lowerExclusive and less than or equal to upperInclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeOOGenerator(IRandom, Double) |
Returns a range generator which will produce doubles strictly greater than zero and strictly less than upperExclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeOOGenerator(IRandom, Single) |
Returns a range generator which will produce floats strictly greater than zero and strictly less than upperExclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeOOGenerator(IRandom, Double, Double) |
Returns a range generator which will produce doubles strictly greater than lowerExclusive and strictly less than upperExclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseRangeOOGenerator(IRandom, Single, Single) |
Returns a range generator which will produce floats strictly greater than lowerExclusive and strictly less than upperExclusive,
with no precision loss as numbers get closer to zero.
| |

MakePreciseSignedDoubleCCGenerator |
Returns a range generator which will produce doubles greater than or equal to zero and less than or equal to one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseSignedDoubleCOGenerator |
Returns a range generator which will produce doubles greater than or equal to zero and strictly less than one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseSignedDoubleOCGenerator |
Returns a range generator which will produce doubles strictly greater than zero and less than or equal to one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseSignedDoubleOOGenerator |
Returns a range generator which will produce doubles strictly greater than zero and strictly less than one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseSignedFloatCCGenerator |
Returns a range generator which will produce floats greater than or equal to zero and less than or equal to one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseSignedFloatCOGenerator |
Returns a range generator which will produce floats greater than or equal to zero and strictly less than one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseSignedFloatOCGenerator |
Returns a range generator which will produce floats strictly greater than zero and less than or equal to one,
with no precision loss as numbers get closer to zero.
| |

MakePreciseSignedFloatOOGenerator |
Returns a range generator which will produce floats strictly greater than zero and strictly less than one,
with no precision loss as numbers get closer to zero.
| |

MakeRangeCCGenerator(IRandom, Byte) |
Returns a range generator which will produce bytes greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Double) |
Returns a range generator which will produce doubles greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Int16) |
Returns a range generator which will produce short integers greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Int32) |
Returns a range generator which will produce integers greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Int64) |
Returns a range generator which will produce long integers greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, SByte) |
Returns a range generator which will produce signed bytes greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Single) |
Returns a range generator which will produce floats greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, UInt16) |
Returns a range generator which will produce unsigned short integers greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, UInt32) |
Returns a range generator which will produce unsigned integers greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, UInt64) |
Returns a range generator which will produce unsigned long integers greater than or equal to zero and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Byte, Byte) |
Returns a range generator which will produce bytes greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Double, Double) |
Returns a range generator which will produce doubles greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Int16, Int16) |
Returns a range generator which will produce short integers greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Int32, Int32) |
Returns a range generator which will produce integers greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Int64, Int64) |
Returns a range generator which will produce long integers greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, SByte, SByte) |
Returns a range generator which will produce signed bytes greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, Single, Single) |
Returns a range generator which will produce floats greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, UInt16, UInt16) |
Returns a range generator which will produce unsigned short integers greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, UInt32, UInt32) |
Returns a range generator which will produce unsigned integers greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCCGenerator(IRandom, UInt64, UInt64) |
Returns a range generator which will produce unsigned long integers greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

MakeRangeCOGenerator(IRandom, Byte) |
Returns a range generator which will produce bytes greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Double) |
Returns a range generator which will produce doubles greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Int16) |
Returns a range generator which will produce short integers greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Int32) |
Returns a range generator which will produce integers greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Int64) |
Returns a range generator which will produce long integers greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, SByte) |
Returns a range generator which will produce signed bytes greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Single) |
Returns a range generator which will produce floats greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, UInt16) |
Returns a range generator which will produce unsigned short integers greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, UInt32) |
Returns a range generator which will produce unsigned integers greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, UInt64) |
Returns a range generator which will produce unsigned long integers greater than or equal to zero and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Byte, Byte) |
Returns a range generator which will produce bytes greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Double, Double) |
Returns a range generator which will produce doubles greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Int16, Int16) |
Returns a range generator which will produce short integers greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Int32, Int32) |
Returns a range generator which will produce integers greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Int64, Int64) |
Returns a range generator which will produce long integers greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, SByte, SByte) |
Returns a range generator which will produce signed bytes greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, Single, Single) |
Returns a range generator which will produce floats greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, UInt16, UInt16) |
Returns a range generator which will produce unsigned short integers greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, UInt32, UInt32) |
Returns a range generator which will produce unsigned integers greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeCOGenerator(IRandom, UInt64, UInt64) |
Returns a range generator which will produce unsigned long integers greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

MakeRangeOCGenerator(IRandom, Byte) |
Returns a range generator which will produce bytes strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Double) |
Returns a range generator which will produce doubles strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Int16) |
Returns a range generator which will produce short integers strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Int32) |
Returns a range generator which will produce integers strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Int64) |
Returns a range generator which will produce long integers strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, SByte) |
Returns a range generator which will produce signed bytes strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Single) |
Returns a range generator which will produce floats strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, UInt16) |
Returns a range generator which will produce unsigned short integers strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, UInt32) |
Returns a range generator which will produce unsigned integers strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, UInt64) |
Returns a range generator which will produce unsigned long integers strictly greater than zero and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Byte, Byte) |
Returns a range generator which will produce bytes strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Double, Double) |
Returns a range generator which will produce doubles strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Int16, Int16) |
Returns a range generator which will produce short integers strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Int32, Int32) |
Returns a range generator which will produce integers strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Int64, Int64) |
Returns a range generator which will produce long integers strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, SByte, SByte) |
Returns a range generator which will produce signed bytes strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, Single, Single) |
Returns a range generator which will produce floats strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, UInt16, UInt16) |
Returns a range generator which will produce unsigned short integers strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, UInt32, UInt32) |
Returns a range generator which will produce unsigned integers strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOCGenerator(IRandom, UInt64, UInt64) |
Returns a range generator which will produce unsigned long integers strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

MakeRangeOOGenerator(IRandom, Byte) |
Returns a range generator which will produce bytes strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Int16) |
Returns a range generator which will produce short integers strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Int32) |
Returns a range generator which will produce integers strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Int64) |
Returns a range generator which will produce long integers strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, SByte) |
Returns a range generator which will produce signed bytes strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Single) |
Returns a range generator which will produce floats strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, UInt16) |
Returns a range generator which will produce unsigned short integers strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, UInt32) |
Returns a range generator which will produce unsigned integers strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, UInt64) |
Returns a range generator which will produce unsigned long integers strictly greater than zero and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Byte, Byte) |
Returns a range generator which will produce bytes strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Int16, Int16) |
Returns a range generator which will produce short integers strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Int32, Int32) |
Returns a range generator which will produce integers strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Int64, Int64) |
Returns a range generator which will produce long integers strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, SByte, SByte) |
Returns a range generator which will produce signed bytes strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, Single, Single) |
Returns a range generator which will produce floats strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, UInt16, UInt16) |
Returns a range generator which will produce unsigned short integers strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, UInt32, UInt32) |
Returns a range generator which will produce unsigned integers strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeRangeOOGenerator(IRandom, UInt64, UInt64) |
Returns a range generator which will produce unsigned long integers strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

MakeSByteGenerator | ||

MakeShortGenerator | ||

MakeSignedDoubleCCGenerator |
Returns a range generator which will produce doubles greater than or equal to zero and less than or equal to one.
| |

MakeSignedDoubleCOGenerator |
Returns a range generator which will produce doubles greater than or equal to zero and strictly less than one.
| |

MakeSignedDoubleOCGenerator |
Returns a range generator which will produce doubles strictly greater than zero and less than or equal to one.
| |

MakeSignedDoubleOOGenerator |
Returns a range generator which will produce doubles strictly greater than zero and strictly less than one.
| |

MakeSignedFloatCCGenerator |
Returns a range generator which will produce floats greater than or equal to zero and less than or equal to one.
| |

MakeSignedFloatCOGenerator |
Returns a range generator which will produce floats greater than or equal to zero and strictly less than one.
| |

MakeSignedFloatOCGenerator |
Returns a range generator which will produce floats strictly greater than zero and less than or equal to one.
| |

MakeSignedFloatOOGenerator |
Returns a range generator which will produce floats strictly greater than zero and strictly less than one.
| |

MakeUIntGenerator | ||

MakeULongGenerator | ||

MakeUShortGenerator |

See Also