Date: Mon, 28 Apr 2025 21:34:03 +0200
Hi,
Unlike some of the more modern generators, the linear congruential generator
produces values in the range 0..m-1, where m might not be a power of two
(in fact, the generator is best when it's prime number, I think),
and the max() function should correctly represent that. Yes, that
makes it more challenging for distributions to adapt to that.
Jens
On 28/04/2025 14.41, Juan Lucas Rey via Std-Proposals wrote:
> Hello,
>
> I have attached here 4 corrections proposals for the random number generators.
>
> Apologies if these documents are incomplete or wrong in any way, this
> process is new to me and I have had little guidance in the production
> of these documents.
>
> Thanks,
> Lucas Rey
>
>
Unlike some of the more modern generators, the linear congruential generator
produces values in the range 0..m-1, where m might not be a power of two
(in fact, the generator is best when it's prime number, I think),
and the max() function should correctly represent that. Yes, that
makes it more challenging for distributions to adapt to that.
Jens
On 28/04/2025 14.41, Juan Lucas Rey via Std-Proposals wrote:
> Hello,
>
> I have attached here 4 corrections proposals for the random number generators.
>
> Apologies if these documents are incomplete or wrong in any way, this
> process is new to me and I have had little guidance in the production
> of these documents.
>
> Thanks,
> Lucas Rey
>
>
Received on 2025-04-28 19:34:07