bug-gawk
[Top][All Lists]
Advanced

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

Re: Random number generator


From: arnold
Subject: Re: Random number generator
Date: Sun, 22 Aug 2021 12:56:55 -0600
User-agent: Heirloom mailx 12.5 7/5/10

"Andrew J. Schorr" <aschorr@telemetry-investments.com> wrote:

> 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

Andy's answer is correct.

Arnold



reply via email to

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