random komutu ile ilgili
Forum kuralları
Forum kurallarını okuyup, uyunuz!
Forum kurallarını okuyup, uyunuz!
-
- Üye
- Mesajlar: 66
- Kayıt: 27 Nis 2006 09:29
random komutu ile ilgili
meraba arkedaşlar ben bişi sormak istiyorum bu random komutunu kısaca anlatan bir yazı yada bir link söyleyebilirmisiniz herkese kolay gelsin
declaration
function Random[(MaxValue: Integer)];
description
Returns a randomly generated number within a specified range.
If MaxValue is not specified Random returns a real number X where 0 <= x <1. If MaxValue is specified the X than falls between 0 and MaxValue. To initialize the random number generator, call (once) the Randomize procedure.
example
Randomize;
Random; // results in a random number 0 <= x <1
Random(50); // results in a random number 0 <= x <50