According to FPL:
Hahem! I asked few days ago about a possibly built-in function giving random or pseudo-random numbers... And received no answer.
I do not remember to have received your question, so I guess it got lost somehow before it reached the list.
[...] I checked in GPC info and there is nothing for random but this:
- GPC notes:: Random notes about GPC.
:-)))
Try the following:
Function Rand: Integer; C;
Procedure SRand ( Seed: Cardinal ); C;
Placing the above in the declaration part of your program will make use of the random generator in the system's C library.
See also
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/contrib/rand.pas
for a Borland-compatible random number generator.
Hose this helps,
Peter