PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Random

Random

Constructors

Random.new ( number seed )

Creates a new Random object. If the seed parameter is not specified, it will use a seed pulled from an internal entropy source.

Functions

int Random:NextInteger ( int min, int max )

Returns a pseudorandom integer uniformly distributed over [min, max).

number Random:NextNumber ( )

Returns a pseudorandom number uniformly distributed over [0, 1).

number Random:NextNumber ( number min, number max )

Returns a pseudorandom number uniformly distributed over [min, max).

Rando Random:Clone ( )

Returns a new Random object with the same state as the original.