Table of Contents

Class SeededRandom

Namespace
GrindFest.Generation.Common
Assembly
GrindFest.dll

Deterministic random for procedural generation. Wraps System.Random so the same seed always produces the same sequence (unlike UnityEngine.Random which is process-global state).

public class SeededRandom
Inheritance
object
SeededRandom

Constructors

SeededRandom(int)

Methods

NextBool(float)
NextDirection2D()
NextFloat()

Uniform [0,1).

NextFloat(float, float)

Uniform [min,max).

NextInt()
NextInt(int)
NextInt(int, int)
NextSigned()

Uniform [-1,1].