Ian Thurlbeck wrote:
> Could anyone tell me how to seed the random number generator ?
>
> I can do:
>
> Randomize;
> writeln(Random);
>
> but I want something like:
>
> RandSeed(67); // SeedRandom ??
> writeln(Random);
This question comes exactly at the right time. :-) The latest snapshot,
released last Friday (19990813) contains a SeddRandom procedure in the
GPC unit. With earlier versions, you're out of luck...
Frank
--
Frank Heckenbach, frank(a)g-n-u.de, http://fjf.gnu.de/
GPC To-Do list, latest features, fixed bugs:
http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
Dear All
Could anyone tell me how to seed the random number generator ?
I can do:
Randomize;
writeln(Random);
but I want something like:
RandSeed(67); // SeedRandom ??
writeln(Random);
Many thanks
Ian
--
Ian Thurlbeck http://www.stams.strath.ac.uk/
Statistics and Modelling Science, University of Strathclyde
Livingstone Tower, 26 Richmond Street, Glasgow, UK, G1 1XH
Tel: +44 (0)141 548 3667 Fax: +44 (0)141 552 2079