Record TSeededRandom

Unit

Declaration

type TSeededRandom = record

Description

Local deterministic LCG, independent of the global Random state. Useful for reproducing a board; not a cryptographic generator.

Source: src/Breakout.Types.pas (line 83).

Overview

Methods

Public procedure Reset(Seed: Cardinal);
Public function Next(Count: Integer): Integer;

Description

Methods

Public procedure Reset(Seed: Cardinal);

Restarts the sequence at Seed.

Source: src/Breakout.Types.pas (line 88).

Public function Next(Count: Integer): Integer;

Advances once and returns a value in [0, Count). Raises EArgumentOutOfRangeException when Count is not positive.

Source: src/Breakout.Types.pas (line 91).


Generated by PasDoc 1.0.4.