Show / Hide Table of Contents

Class RandomNumberGeneratorExtensions

Inheritance
object
RandomNumberGeneratorExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public static class RandomNumberGeneratorExtensions

Methods

Next(RandomNumberGenerator)

Returns a non-negative random integer.

Declaration
public static int Next(this RandomNumberGenerator rnd)
Parameters
Type Name Description
RandomNumberGenerator rnd
Returns
Type Description
int

Next(RandomNumberGenerator, int)

Returns a non-negative random integer that is less than the specified maximum.

Declaration
public static int Next(this RandomNumberGenerator rnd, int maxValue)
Parameters
Type Name Description
RandomNumberGenerator rnd
int maxValue
Returns
Type Description
int

Next(RandomNumberGenerator, int, int)

Returns a random integer that is within a specified range.

Declaration
public static int Next(this RandomNumberGenerator rnd, int minValue, int maxValue)
Parameters
Type Name Description
RandomNumberGenerator rnd
int minValue

The inclusive lower bound of the random number returned.

int maxValue

The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.

Returns
Type Description
int
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top