bug-gawk
[Top][All Lists]
Advanced

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

Re: Random number generator


From: Andrew J. Schorr
Subject: Re: Random number generator
Date: Fri, 20 Aug 2021 21:12:04 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Aug 20, 2021 at 02:46:34PM -0400, copper tracer wrote:
> Is it possible that someone tell me where (in the code) is the integer
> generated by (C function) rnd converted to a float (as is the output of awk
> rnd).

I'm not sure that I understand your question; are you asking where in
the source code to find the implementation of gawk's rand() function?
If so, the answer is builtin.c:do_rand().

Regards,
Andy



reply via email to

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