Skip to main content

Chance

Returns true with the specified chance.

Syntax

Chance chance

Returns

bool value

Arguments

NameRequiredTypeDescription
chanceYesA number between 0 and 1 (inclusive)

Details

e.g. if set to 20%, true will be returned 20% of the time.

On a running server

Use serhelp Chance to inspect the reference generated by your installed SER version.