Re: ran 3 trials of 100K to check the recovery of a rational number from its decimal

Loïc Grenié <[email protected]>
Newsgroups gmane.comp.mathematics.pari.user
Message-ID <CAMLkfFT5MHmQ0vY1u0mTZu3FCTbge0EOLGucCw=vPawH-3F6jg@mail.gmail.com>
On Thu 5 Jun 2025 at 08:13, American Citizen wrote:

> [...]
>
  n=random(N);d=random(N);\
> [...]
>
And somewhat irritatingly, I got a zero from the random(N) function
> call, which resulted in a zero in the denominator, so I had to watch out
> for that.
>

n=random(N);d=1+random(N);?

    Loïc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.