AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgk.Random Method (Integer, Integer)

Generates a random number between two given values. The result may be equal to either of the given values.

Syntax
Pascal
class function Random(const Low: Integer; const High: Integer): Integer; overload; static;
Parameters 
Description 
const Low: Integer 
The lowest value to return. 
const High: Integer 
The highest value to return. 

The random number.

The total range of values is limited to 0-65535. 

The random number generator is built into AGK so a particular seed value will produce the same sequence of numbers on every platform.

Copyright (c) 2012. All rights reserved.