Subject: re: Very small numbers from awk's rand()
To: None <>
From: Ray Phillips <>
List: port-alpha
Date: 05/14/2000 15:39:39
I decided to download gawk-3.0.4.tar.gz from a GNU mirror site and compile
it on a 3000/400 which is running 1.4.1.  Curiously enough, using the gawk
it produced with the command shown below gave expected results, ie.
identical to the ones from the i386 machine I mentioned originally; but
/usr/bin/awk still produces minute values.

Anyone have any idea why?


>Dear Port Alpha:
>Can anyone tell me why NetBSD/alpha 1.4.1's awk's rand() function produces
>such small results?
>Typing this command
>          awk '{for(i=1;i<=10;i++) print rand(); exit}'
>followed by two <returns> gives this output:
>but on a NetBSD/i386 system the result is:
>which seems much more reasonable.
>Ray Phillips