in reply to Re: Algorithm RFC: fast (pseudo-)random shuffle with no repetition
in thread Algorithm RFC: fast (pseudo-)random shuffle with no repetition
Runtime ...
from the OP
> > Both brute subroutines below aren't actually used: they are totally unusable for lists with ~15 unique strings or more, plus any decent amount of duplicates.
Your approach is even worse, instead of brute-forcing one random result, you try to brute-force all possible solutions in advance.
NB 15! = 1.3e12
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Algorithm RFC: fast (pseudo-)random shuffle with no repetition
by karlgoethebier (Abbot) on Sep 24, 2023 at 09:42 UTC | |
by LanX (Saint) on Sep 24, 2023 at 12:28 UTC | |
by karlgoethebier (Abbot) on Sep 24, 2023 at 14:09 UTC | |
by LanX (Saint) on Sep 24, 2023 at 14:31 UTC | |
by hv (Prior) on Sep 24, 2023 at 16:27 UTC | |
| |
by karlgoethebier (Abbot) on Sep 24, 2023 at 16:25 UTC | |
| |
by karlgoethebier (Abbot) on Sep 24, 2023 at 17:33 UTC |