Skip to content
ClassCollision & Math@public

FlxRandom ​

Mutable deterministic random source compatible with FlxG.globalSeed.

ts
export declare class FlxRandom

Constructors ​

ts
constructor(seed?: number)

Constructs a new instance of the FlxRandom class

ParameterTypeDescription
seednumber-

Properties ​

PropertyModifiersTypeDescription
seed-number-

Methods ​

next() ​

ts
next(): number

Advances and returns the next number in the Flixel sequence.

Returns: number

Released under the MIT License.