AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgk.SetRandomSeed Method

Sets the seed for the random number generator. Two AGK applications using the same seed value will generate the same sequence of random numbers.

Syntax
Pascal
class procedure SetRandomSeed(const Seed: Cardinal); static;
Parameters 
Description 
const Seed: Cardinal 
The seed value, between 1 and 2^32 

By default the seed is set to the current time on startup so that each run of the application will generate a different sequence of numbers.

Copyright (c) 2012. All rights reserved.