Table of Contents

Interface IDeterministicRandom

Namespace
Backdash.Synchronizing.Random
Assembly
Backdash.dll

Defines a random number generator

public interface IDeterministicRandom

Methods

Next()

Returns a random unsigned integer.

uint Next()

Returns

uint

NextFloat()

Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.

float NextFloat()

Returns

float

NextInt()

Returns a random non-negative integer.

int NextInt()

Returns

int

NextInt(int)

Returns a random integer that is between 0 and maxValue

int NextInt(int maxValue)

Parameters

maxValue int

Returns

int

NextInt(int, int)

Returns a random integer that is within a specified range.

int NextInt(int minValue, int maxValue)

Parameters

minValue int
maxValue int

Returns

int

UpdateSeed(int, int)

Updates the seed for the current random instance

void UpdateSeed(int newState, int extraState = 0)

Parameters

newState int
extraState int