Click or drag to resize
RandomInteger Class
A static class of extension methods for generating random numbers within custom ranges.
Inheritance Hierarchy
SystemObject
  Experilous.MakeItRandomRandomInteger

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

The RandomInteger type exposes the following members.

Methods
  NameDescription
Public methodStatic memberByte
Returns a random byte greater than or equal to MinValue and less than or equal to MaxValue.
Public methodStatic memberInt
Returns a random integer greater than or equal to MinValue and less than or equal to MaxValue.
Public methodStatic memberIntNonNegative
Returns a random integer greater than or equal to 0 and less than or equal to MaxValue.
Public methodStatic memberLong
Returns a random long integer greater than or equal to MinValue and less than or equal to MaxValue.
Public methodStatic memberLongNonNegative
Returns a random long integer greater than or equal to 0 and less than or equal to MaxValue.
Public methodStatic memberRangeCC(IRandom, Byte)
Returns a random byte greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Int16)
Returns a random short integer greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Int32)
Returns a random integer greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Int64)
Returns a random long integer greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, SByte)
Returns a random signed byte greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, UInt16)
Returns a random unsigned short integer greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, UInt32)
Returns a random unsigned integer greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, UInt64)
Returns a random unsigned long integer greater than or equal to zero and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Byte, Byte)
Returns a random byte greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Int16, Int16)
Returns a random short integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Int32, Int32)
Returns a random integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, Int64, Int64)
Returns a random long integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, SByte, SByte)
Returns a random signed byte greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, UInt16, UInt16)
Returns a random unsigned short integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, UInt32, UInt32)
Returns a random unsigned integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCC(IRandom, UInt64, UInt64)
Returns a random unsigned long integer greater than or equal to lowerInclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeCO(IRandom, Byte)
Returns a random byte greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Int16)
Returns a random short integer greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Int32)
Returns a random integer greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Int64)
Returns a random long integer greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, SByte)
Returns a random signed byte greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, UInt16)
Returns a random unsigned short integer greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, UInt32)
Returns a random unsigned integer greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, UInt64)
Returns a random unsigned long integer greater than or equal to zero and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Byte, Byte)
Returns a random byte greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Int16, Int16)
Returns a random short integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Int32, Int32)
Returns a random integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, Int64, Int64)
Returns a random long integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, SByte, SByte)
Returns a random signed byte greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, UInt16, UInt16)
Returns a random unsigned short integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, UInt32, UInt32)
Returns a random unsigned integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeCO(IRandom, UInt64, UInt64)
Returns a random unsigned long integer greater than or equal to lowerInclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOC(IRandom, Byte)
Returns a random byte strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Int16)
Returns a random short integer strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Int32)
Returns a random integer strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Int64)
Returns a random long integer strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, SByte)
Returns a random signed byte strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, UInt16)
Returns a random unsigned short short integer strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, UInt32)
Returns a random unsigned integer strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, UInt64)
Returns a random unsigned long integer strictly greater than zero and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Byte, Byte)
Returns a random byte strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Int16, Int16)
Returns a random short integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Int32, Int32)
Returns a random integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, Int64, Int64)
Returns a random long integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, SByte, SByte)
Returns a random signed byte strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, UInt16, UInt16)
Returns a random unsigned short short integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, UInt32, UInt32)
Returns a random unsigned integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOC(IRandom, UInt64, UInt64)
Returns a random unsigned long integer strictly greater than lowerExclusive and less than or equal to upperInclusive.
Public methodStatic memberRangeOO(IRandom, Byte)
Returns a random byte strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Int16)
Returns a random short integer strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Int32)
Returns a random integer strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Int64)
Returns a random long integer strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, SByte)
Returns a random signed byte strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, UInt16)
Returns a random unsigned short integer strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, UInt32)
Returns a random unsigned integer strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, UInt64)
Returns a random unsigned long integer strictly greater than zero and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Byte, Byte)
Returns a random byte strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Int16, Int16)
Returns a random short integer strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Int32, Int32)
Returns a random integer strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, Int64, Int64)
Returns a random long integer strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, SByte, SByte)
Returns a random signed byte strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, UInt16, UInt16)
Returns a random unsigned short integer strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, UInt32, UInt32)
Returns a random unsigned integer strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberRangeOO(IRandom, UInt64, UInt64)
Returns a random unsigned long integer strictly greater than lowerExclusive and strictly less than upperExclusive.
Public methodStatic memberSByte
Returns a random signed byte greater than or equal to MinValue and less than or equal to MaxValue.
Public methodStatic memberSByteNonNegative
Returns a random signed byte greater than or equal to 0 and less than or equal to MaxValue.
Public methodStatic memberShort
Returns a random short integer greater than or equal to MinValue and less than or equal to MaxValue.
Public methodStatic memberShortNonNegative
Returns a random short integer greater than or equal to 0 and less than or equal to MaxValue.
Public methodStatic memberUInt
Returns a random unsigned integer greater than or equal to MinValue and less than or equal to MaxValue.
Public methodStatic memberULong
Returns a random unsigned long integer greater than or equal to MinValue and less than or equal to MaxValue.
Public methodStatic memberUShort
Returns a random unsigned short integer greater than or equal to MinValue and less than or equal to MaxValue.
Top
See Also