uniformly random distribution Shiro Kawai (07 Mar 2024 00:37 UTC)
Re: uniformly random distribution Antero Mejr (07 Mar 2024 01:42 UTC)
Re: uniformly random distribution Shiro Kawai (07 Mar 2024 01:52 UTC)
Re: uniformly random distribution Antero Mejr (07 Mar 2024 02:40 UTC)
Re: uniformly random distribution Shiro Kawai (07 Mar 2024 03:11 UTC)
Re: uniformly random distribution Arthur A. Gleckler (07 Mar 2024 01:53 UTC)
Re: uniformly random distribution Antero Mejr (07 Mar 2024 02:28 UTC)
Re: uniformly random distribution Shiro Kawai (07 Mar 2024 02:46 UTC)

Re: uniformly random distribution Antero Mejr 07 Mar 2024 02:40 UTC

Shiro Kawai <xxxxxx@gmail.com> writes:

> Hmm, I see.  Yet, we can require that SRFI-252 generators observe
> current-random-source and still allow the implementations to choose
> distributions.  There are other implementation-dependent factors so we can't
> guarantee reliable reproducible sequences across implementations anyway.
>
> I think keeping the design simple encourages adoption, so I don't insist on
> adding variations of generators.  The user can roll their own using SRFI-194 if
> necessary.   I'm just afraid that the requirement of uniform distribution
> restricts the implementation too much.

The SRFI 252 generator sections say: "The generator should return the
sequence ... then a uniformly random distribution of ...".

Using the RFC 2119 definition of "should", implementations would be free
to change the sequences and distribution.

The use of current-random-source is specified with the word "must" at
the beginning of the section.