Link to home
Start Free TrialLog in
Avatar of Jacco
JaccoFlag for Netherlands

asked on

Delphi emulating microsoft RTL "srand" & "random" functions

I want to reproduce the same random numbers that the MS RTL does. To produce the same cardsets Freecell (the windows card game) does when supplying the same game numbers.

Regards Jacco
Avatar of robert_marquardt
robert_marquardt

The easiest way is to simply call the functions from MSVCRT.DLL.
Almost any computer should have that DLL installed.
Avatar of Jacco

ASKER

I have the DLL, but not the interface.
ASKER CERTIFIED SOLUTION
Avatar of robert_marquardt
robert_marquardt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jacco

ASKER

Thanks! Will try if it works.

Regards Jacco
Avatar of Jacco

ASKER

It works thanks for the quick response!

Regards Jacco