Delphi 5 returns 379. I'd expect Delphi 2-4 to do the same.
I'd guess that there has been no need to adjust the random generator
since Turbo 5 or earlier.
N
Alistair George wrote:
>
> Hi folks. If anyone has the time would they please advise what number the
> following code generates under Delphi 2 and Delphi 4 - they say the
> randomizer may not be consistent across various versions of Delphi. Its for
> a freeware registration proc.
> Thanks,
> Al+
>
> randseed:=1000;
> showmessage(inttostr(random(1000))); //D3:=379
>
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz