Bill Allombert on Thu, 05 Jun 2025 12:03:05 +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
|
- To: American Citizen <website.reader3@gmail.com>
- Subject: Re: ran 3 trials of 100K to check the recovery of a rational number from its decimal
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 5 Jun 2025 12:03:01 +0200
- Cc: pari-users <pari-users@pari.math.u-bordeaux.fr>
- Delivery-date: Thu, 05 Jun 2025 12:03:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.u-bordeaux.fr; s=2022; t=1749117783; bh=d5LljLen6+nrMmXmKcULd0HS82TPZ78c22DR4pFX7yE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AOU/YpysJhlrwq2OCY1B8cF5E2SGoViVL7rIwwidAbK1EvGNhrw34OLWiN784kfUF 5mVLULq/nbPSJ4thIncyKI9M1WL8HtlutfVC9prt56wxNgM7CGgBI6TC563WCmw5wP Y5kf6lf2uLILd+3073btsYaUAgBoNBqNWbCi7tkvAO4+8YLlasx01GKjr2BZaFgY2R ANFFmx4e5VjcVwkqV9IGomaK8HrObVp5zlbsWki9qE8vTPqO1eq270MqsZv3YdvmT6 ylzT9zBmfZ5Akc7di6NMsnplKcvOs9SqYGSicVFdTbSMI0CnAouLW1WZyq+nVhNU2D 0oSxUjPj9no5PTw397Wb5jIAkBasracMp0TIkPE3eFNjmpAVoknxWq3UBO6yZ7HK75 ZFZmiGPvNpN8LBxD/kdPx8pCSfVcJXw4hRay+aPolgxVm8u+LZfOnaibkhVQQtXa6y zml6+75+RkNmdpXnRuXdXTssRc045Zk/xZd9V3oWHbD6qL9wDNQuf6oS8NJRxBI0Fi R+7p0J50xwjaQjpm+0OvFqxI5GSjM83eicmZ3/GmzsQjzuFEfVzMTp72pEZ9tsqTfj NjefLOm2MNWL1IqMQP/cgw00mQWklfP7PIYBhE7SfqPWQaSlUTtUi7WCtg8GLzSqzc v/VF2kJBZXmQjEV0a1cd7vNk=
- In-reply-to: <5ac5bdad-cc25-4d18-a995-fe32283456a0@gmail.com>
- Mail-followup-to: American Citizen <website.reader3@gmail.com>, pari-users <pari-users@pari.math.u-bordeaux.fr>
- References: <5ac5bdad-cc25-4d18-a995-fe32283456a0@gmail.com>
On Wed, Jun 04, 2025 at 11:05:03PM -0700, American Citizen wrote:
> 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.
You can use random([1,N]) if you need a random number x so that 1<=x<=N.
Cheers,
Bill.