Loïc Grenié on Thu, 05 Jun 2025 09:37:10 +0200


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

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


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