Random

Top  Previous  Next

Prototype

 

IntNumber:=Random(intNumber1)

 

Description

 

It returns a random number from zero to the value assigned by parameters.
 

Parameters

 

intNumber1: integer number, it is the maximum range value in which choose the random number .

 

Returned Value

 

IntNumber: random integer number chosen from the algorithm.

 

Notes

 

None.

 

Example

 

//It initializes a variable with a random value

rand:=Random(255);

 

//It converts value in string

value:=IntToStr(rand);

 

//It shows random value

ShowMessage(value);