Craig Martin

(Official) LUA Scripting Documentation

get_random

Get a random number.


Spec:

get_random(
	long max)

Parameters

Returns


The number generated will be between 0 and max inclusive


Example

notify("The dice roll equals ", get_random(5)+1)

Incomplete

This documentation is incomplete


back