RNG

Overview

Return Value
Function

integer

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

void

SetSeed(RNGarrow-up-right rng, integer seed)

Functions

CopyRNG()

RNGarrow-up-right CopyRNG(RNGarrow-up-right 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()

RNGarrow-up-rightNewRNG(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(RNGarrow-up-right rng, integer seed)

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

Last updated