Table of Contents

Interface IRandom

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Represents a random generator.

[Version(1, 5, 0)]
public interface IRandom
Extension Methods

Methods

Next()

Gets the next random non-negative integer value.

Next(int)

Gets the next random integer value below the given maximum.

Next(int, int)

Gets the next random integer value greater than or equal to the minimum and below the given maximum.

NextBytes(byte[])

Fills the given array with random bytes.

NextDouble()

Gets the next random double value.

RandomOnSphere(float)

Returns a random value on the surface of a sphere with a given radius.