Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

types.Random

A seeded random stream from Chunk:random.

Methods

random:chance(p: number) -> boolean
#

True with probability p.

Range: p: 0..1

random:int(min: number, max: number) -> number
#

A whole number from min to max, both included.