Make It Random Basic User's Manual

RandomInteger Class |

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

Inheritance Hierarchy

Syntax

C#

public static class RandomInteger

The RandomInteger type exposes the following members.

Methods

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

Byte | ||

Int | ||

IntNonNegative |
Returns a random integer greater than or equal to 0 and less than or equal to MaxValue.
| |

Long | ||

LongNonNegative |
Returns a random long integer greater than or equal to 0 and less than or equal to MaxValue.
| |

RangeCC(IRandom, Byte) |
Returns a random byte greater than or equal to zero and less than or equal to upperInclusive.
| |

RangeCC(IRandom, Int16) |
Returns a random short integer greater than or equal to zero and less than or equal to upperInclusive.
| |

RangeCC(IRandom, Int32) |
Returns a random integer greater than or equal to zero and less than or equal to upperInclusive.
| |

RangeCC(IRandom, Int64) |
Returns a random long integer greater than or equal to zero and less than or equal to upperInclusive.
| |

RangeCC(IRandom, SByte) |
Returns a random signed byte greater than or equal to zero and less than or equal to upperInclusive.
| |

RangeCC(IRandom, UInt16) |
Returns a random unsigned short integer greater than or equal to zero and less than or equal to upperInclusive.
| |

RangeCC(IRandom, UInt32) |
Returns a random unsigned integer greater than or equal to zero and less than or equal to upperInclusive.
| |

RangeCC(IRandom, UInt64) |
Returns a random unsigned long integer greater than or equal to zero and less than or equal to upperInclusive.
| |

RangeCC(IRandom, Byte, Byte) |
Returns a random byte greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

RangeCC(IRandom, Int16, Int16) |
Returns a random short integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

RangeCC(IRandom, Int32, Int32) |
Returns a random integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

RangeCC(IRandom, Int64, Int64) |
Returns a random long integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

RangeCC(IRandom, SByte, SByte) |
Returns a random signed byte greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

RangeCC(IRandom, UInt16, UInt16) |
Returns a random unsigned short integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

RangeCC(IRandom, UInt32, UInt32) |
Returns a random unsigned integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

RangeCC(IRandom, UInt64, UInt64) |
Returns a random unsigned long integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
| |

RangeCO(IRandom, Byte) |
Returns a random byte greater than or equal to zero and strictly less than upperExclusive.
| |

RangeCO(IRandom, Int16) |
Returns a random short integer greater than or equal to zero and strictly less than upperExclusive.
| |

RangeCO(IRandom, Int32) |
Returns a random integer greater than or equal to zero and strictly less than upperExclusive.
| |

RangeCO(IRandom, Int64) |
Returns a random long integer greater than or equal to zero and strictly less than upperExclusive.
| |

RangeCO(IRandom, SByte) |
Returns a random signed byte greater than or equal to zero and strictly less than upperExclusive.
| |

RangeCO(IRandom, UInt16) |
Returns a random unsigned short integer greater than or equal to zero and strictly less than upperExclusive.
| |

RangeCO(IRandom, UInt32) |
Returns a random unsigned integer greater than or equal to zero and strictly less than upperExclusive.
| |

RangeCO(IRandom, UInt64) |
Returns a random unsigned long integer greater than or equal to zero and strictly less than upperExclusive.
| |

RangeCO(IRandom, Byte, Byte) |
Returns a random byte greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

RangeCO(IRandom, Int16, Int16) |
Returns a random short integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

RangeCO(IRandom, Int32, Int32) |
Returns a random integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

RangeCO(IRandom, Int64, Int64) |
Returns a random long integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

RangeCO(IRandom, SByte, SByte) |
Returns a random signed byte greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

RangeCO(IRandom, UInt16, UInt16) |
Returns a random unsigned short integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

RangeCO(IRandom, UInt32, UInt32) |
Returns a random unsigned integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

RangeCO(IRandom, UInt64, UInt64) |
Returns a random unsigned long integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
| |

RangeOC(IRandom, Byte) |
Returns a random byte strictly greater than zero and less than or equal to upperInclusive.
| |

RangeOC(IRandom, Int16) |
Returns a random short integer strictly greater than zero and less than or equal to upperInclusive.
| |

RangeOC(IRandom, Int32) |
Returns a random integer strictly greater than zero and less than or equal to upperInclusive.
| |

RangeOC(IRandom, Int64) |
Returns a random long integer strictly greater than zero and less than or equal to upperInclusive.
| |

RangeOC(IRandom, SByte) |
Returns a random signed byte strictly greater than zero and less than or equal to upperInclusive.
| |

RangeOC(IRandom, UInt16) |
Returns a random unsigned short short integer strictly greater than zero and less than or equal to upperInclusive.
| |

RangeOC(IRandom, UInt32) |
Returns a random unsigned integer strictly greater than zero and less than or equal to upperInclusive.
| |

RangeOC(IRandom, UInt64) |
Returns a random unsigned long integer strictly greater than zero and less than or equal to upperInclusive.
| |

RangeOC(IRandom, Byte, Byte) |
Returns a random byte strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

RangeOC(IRandom, Int16, Int16) |
Returns a random short integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

RangeOC(IRandom, Int32, Int32) |
Returns a random integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

RangeOC(IRandom, Int64, Int64) |
Returns a random long integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

RangeOC(IRandom, SByte, SByte) |
Returns a random signed byte strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

RangeOC(IRandom, UInt16, UInt16) |
Returns a random unsigned short short integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

RangeOC(IRandom, UInt32, UInt32) |
Returns a random unsigned integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

RangeOC(IRandom, UInt64, UInt64) |
Returns a random unsigned long integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
| |

RangeOO(IRandom, Byte) |
Returns a random byte strictly greater than zero and strictly less than upperExclusive.
| |

RangeOO(IRandom, Int16) |
Returns a random short integer strictly greater than zero and strictly less than upperExclusive.
| |

RangeOO(IRandom, Int32) |
Returns a random integer strictly greater than zero and strictly less than upperExclusive.
| |

RangeOO(IRandom, Int64) |
Returns a random long integer strictly greater than zero and strictly less than upperExclusive.
| |

RangeOO(IRandom, SByte) |
Returns a random signed byte strictly greater than zero and strictly less than upperExclusive.
| |

RangeOO(IRandom, UInt16) |
Returns a random unsigned short integer strictly greater than zero and strictly less than upperExclusive.
| |

RangeOO(IRandom, UInt32) |
Returns a random unsigned integer strictly greater than zero and strictly less than upperExclusive.
| |

RangeOO(IRandom, UInt64) |
Returns a random unsigned long integer strictly greater than zero and strictly less than upperExclusive.
| |

RangeOO(IRandom, Byte, Byte) |
Returns a random byte strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

RangeOO(IRandom, Int16, Int16) |
Returns a random short integer strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

RangeOO(IRandom, Int32, Int32) |
Returns a random integer strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

RangeOO(IRandom, Int64, Int64) |
Returns a random long integer strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

RangeOO(IRandom, SByte, SByte) |
Returns a random signed byte strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

RangeOO(IRandom, UInt16, UInt16) |
Returns a random unsigned short integer strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

RangeOO(IRandom, UInt32, UInt32) |
Returns a random unsigned integer strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

RangeOO(IRandom, UInt64, UInt64) |
Returns a random unsigned long integer strictly greater than lowerExclusive and strictly less than upperExclusive.
| |

SByte | ||

SByteNonNegative |
Returns a random signed byte greater than or equal to 0 and less than or equal to MaxValue.
| |

Short | ||

ShortNonNegative |
Returns a random short integer greater than or equal to 0 and less than or equal to MaxValue.
| |

UInt | ||

ULong | ||

UShort |

See Also