random komutu ile ilgili

Delphi'de kod yazma ile ilgili sorularınızı bu foruma yazabilirsiniz.
Cevapla
naturelmania
Üye
Mesajlar: 66
Kayıt: 27 Nis 2006 09:29

random komutu ile ilgili

Mesaj gönderen naturelmania »

meraba arkedaşlar ben bişi sormak istiyorum bu random komutunu kısaca anlatan bir yazı yada bir link söyleyebilirmisiniz herkese kolay gelsin
Kullanıcı avatarı
lazio
Moderator
Mesajlar: 1527
Kayıt: 11 Tem 2003 04:55
Konum: İstanbul

Mesaj gönderen lazio »

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
DeveloperToolKit

..::|YeşilMavi|::..
Cevapla