# Random2

## Description

Generates a random number based on the current seed value. The random number generator is built into AGK so a particular seed value will produce the same sequence of numbers on every platform. Produces a random number between -2,147,483,648 and 2,147,483,647. This generator is slower than Random but produces better quality randomness over a larger range of values.

## Definition

integer Random2( )

int agk::Random2( )

integer Random2( from, to )

int agk::Random2( int from, int to )

## Parameters

- from - The lowest value to return
- to - The highest value to return