RNG
Overview
Functions
CopyRNG()
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()
RNG
NewRNG(integer The seed to initialize it with. Default is
TSIL.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