Re: [PATCH] Fix biased shuffle by avoiding already "struck" elements

2024-06-19 Thread Sergei Trofimovich
On Wed, 19 Jun 2024 10:55:53 -0400 Dmitry Goncharov wrote: > On Tue, Jun 18, 2024 at 5:38 PM Sergei Trofimovich wrote: > > After the change probabilities are not as biased: > > > > 0 1 2 3 > > _ _ _ _ > > 0 | 24.99 24.99 25.01 25.01 > > 1

Re: [PATCH] Fix biased shuffle by avoiding already "struck" elements

2024-06-19 Thread Dmitry Goncharov
On Tue, Jun 18, 2024 at 5:38 PM Sergei Trofimovich wrote: > After the change probabilities are not as biased: > > 0 1 2 3 > _ _ _ _ > 0 | 24.99 24.99 25.01 25.01 > 1 | 24.99 25.04 24.99 24.99 > 2 | 25.01 25.00 25.00 24.99 > 3 | 25.01