RNG

Overview

Return Value
Function

integer

NewRNG(integer The seed to initialize it with. Default is TSIL.RNG.GetRandomSeed seed)

void

SetSeed(RNG rng, integer seed)

Functions

CopyRNG()

RNG CopyRNG(RNG rng)

Copies an RNG object

GetRandomSeed()

integer GetRandomSeed()

Helper function to get a random Seed value to be used in spawning entities and so on. Use this instead of calling the Random function directly since that can return a value of 0 and crash the game.

NewRNG()

RNGNewRNG(integer The seed to initialize it with. Default isTSIL.RNG.GetRandomSeed seed)

Helper function to initialize an RNG object using Blade's recommended shift index.

SetSeed()

void SetSeed(RNG rng, integer seed)

Helper function to set a seed to an RNG object using Blade's recommended shift index.

Last updated