Hi,
I'd like to use random numbers generator. Is someone knows some efficient procedures or functions in pascal?
Thanks a lot in advance for your help,
Nathalie
Hi, Nathalie,
you wrote:
I'd like to use random numbers generator.
Just do so. :-)
Is someone knows some efficient procedures or functions in pascal?
Yes: `Random'. Use `Randomize' to initialize the random number generator.
program foo;
begin Randomize; WriteLn (Random (42)) end.
Have fun,
Peter
Nathalie:
A compiler and system independent random generator is at:
http://www.lecb.ncifcrf.gov/~toms/delila/tstrnd.html
Note that the current gpc probably still can't handle gotos that jump to the end of the code (it's supposed to come on the next release), so it it yells about this, just remove the goto.
Tom
Dr. Thomas D. Schneider National Cancer Institute Laboratory of Experimental and Computational Biology Frederick, Maryland 21702-1201 toms@ncifcrf.gov permanent email: toms@alum.mit.edu http://www.lecb.ncifcrf.gov/~toms/