Re: freepascal random gives different results for x86_64 and i386
by harga <info@[EMAIL PROTECTED]
>
Sep 27, 2007 at 05:55 AM
On 27 Sep., 14:51, harga <i...@[EMAIL PROTECTED]
> wrote:
> Hi there,
>
> I wonder whether some already came across this: when compiling a
> program under x86_64 the random() function call returns doubles within
> the range of -0.5 to 0.5, while
> when I compile it on a i386-machine it returns values between 0 and 1
> as it should.
>
> Any ideas how I can prevent this? Do I need a special compiler switch
> under x86_64 to get the normal random() behaviour?
>
> Thanks!
>
> harga
I forgot to mention the version number: it's 2.2.0