RandInt

From Multi Theft Auto: Wiki
Revision as of 13:51, 30 March 2006 by ChrML (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function returns a random integer value between a specified minimum and maximum value.

Syntax

int randInt ( int lowerbound, int upperbound )

Required Arguments

  • lowerbound: This is the lowest random value this function can return.
  • upperbound: This is the highest random value this function can return.

Example

serverChat ( "A random value between 5 and 10 is ", randInt ( 5, 10 ) )