Space Station 13 - Modules - TypesProc Details

prng

Compartmentalized PRNG. Allows for coordinated randomness through multiple PRNG datums with the same seed

Procs

chanceRoll for success with the given chance. Returns TRUE if the roll succeeded
randomGet a random value between low and high, inclusive. Default PRNG is just a wrapper. Not thread-safe across multiple PRNG datums because state is shared
random_dirGet a random direction
seedRe-seed the PRNG. Seeds with a value from the builtin rng if no seed is given to ensure different seeds

Proc Details

chance

Roll for success with the given chance. Returns TRUE if the roll succeeded

random

Get a random value between low and high, inclusive. Default PRNG is just a wrapper. Not thread-safe across multiple PRNG datums because state is shared

random_dir

Get a random direction

seed

Re-seed the PRNG. Seeds with a value from the builtin rng if no seed is given to ensure different seeds