Skip to content

Latest commit

 

History

History
84 lines (52 loc) · 1.16 KB

Random.md

File metadata and controls

84 lines (52 loc) · 1.16 KB

random

rand randf

Description:
Returns a random float between the specified ranges (optional). If no range is given then random float b/w 0 and 1, if one is specified number b/w 0 and that num.

Syntax:

random <min?> <max?>

Example:

random 5 10

Result:

6.924498893234736

randomInt

randInt randi

Description:
Returns a random integer between the specified ranges (optional). If no range is given then random integer b/w 0 and 1, if one is specified number b/w 0 and that num.

Syntax:

randomInt <min?> <max?>

Example:

randomInt 5 10

Result:

7

randomBool

randBool randb

Description:
Returns a random boolean value.

Syntax:

randomBool

Example:

randomBool

Result:

false

randomChar

randChar randc

Description:
Returns a random character from the ASCII table.

Syntax:

randomChar

Example:

randomChar

Result:

P