rand (RPC API)#

The RPC calls provided by rand are the following:

os.rpc.random.random()#
Returns:

A random number within the [0.0, 1.0[ range.

Return type:

number

os.rpc.random.randint(min, max)#
Parameters:
  • min (number) – Minimum value, included in the interval.

  • max (number) – Maximum value, excluded from the interval.

Returns:

A random integer within the [min, max[ range.

Return type:

number