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