News for hackers. Stuff that matters.
Re:I analyzed shuffling in a million games of MtG Arena by afiori on Sunday January 15, 2023 @07:48AM (#34389000)
I don't think you can apply this proof to the described algorithm.

This proves that

    for i in range(min_key,max_key):
        swap(arr, i, choice(i, max_key))
works as a shuffle, by growing a random sub-array.*

The first algorithm was

    for i in range(min_key,max_key):
        swap(arr, i, choice(min_key, max_key))
which has different biases.

* I am not actually sure that this actually works.

Re:I analyzed shuffling in a million games of MtG Arena by senkora on Sunday January 15, 2023 @07:56AM (#34389047)
Ah, I see what you mean. I assumed the first algorithm was what they meant; I have no comment on the second algorithm.
Re:I analyzed shuffling in a million games of MtG Arena by mananaysiempre on Sunday January 15, 2023 @07:59AM (#34389065)
Your first one is one of the versions of the standard Fisher–Yates shuffle, so it does work :)