math
random_int( min, max ): int
Returns a random integer between the two given numbers
Type
Name
Description
int
min
The minimum number that can be generated
int
max
The maximum number that can be generated
random_float( min, max ): float
Returns a random float between the two given numbers
Type
Name
Description
float
min
The minimum number that can be generated
float
max
The maximum number that can be generated
ticks_to_time( ticks ): float
Converts game ticks into time
Type
Name
Description
int
ticks
The amount of game ticks to convert to time
time_to_ticks( time ): int
Converts time into game ticks
Type
Name
Description
float
time
The amount of time to convert to game ticks
Last updated
Was this helpful?