21.02.2010, 16:57
|
|
Местный
|
|
Регистрация: 20.02.2008
Адрес: Московская область
Сообщения: 420
Репутация: 884
|
|
Random
Из справкм Delphi 7:
Цитата:
Delphi syntax:
function Random [ ( Range: Integer) ];
Description
In Delphi code, Random returns a random number within the range 0 <= X < Range. If Range is not specified, the result is a real-type random number within the range
0 <= X < 1.
To initialize the random number generator, add a single call Randomize or assign a value to the RandSeed variable before making any calls to Random.
Note: Because the implementation of the Random function may change between compiler versions, we do not recommend using Random for encryption or other purposes that require reproducible sequences of pseudo-random numbers.
|
|