bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] Where is the default seed documented?


From: Peng Yu
Subject: [bug-gawk] Where is the default seed documented?
Date: Tue, 19 Aug 2014 15:45:25 -0500

Hi,

It seems that a default seed is set to 1. But I don't see where this
is documented. Could anybody show me where it is? Thanks.

~$ awk 'BEGIN{ print rand(); print srand(); }'
0.237788
1
~$ awk 'BEGIN{ print rand(); print srand(); }'
0.237788
1

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]