Why is my random shuffle always producing the same result when using Suiji?

Note that there’s a slight difference between our suggestions, @gezepi. You have a context around the whole function, while I only wrap get(). That makes a difference! Context is frozen when a context expression starts, so your get() will actually retrieve the value before randomizing. Note how the first line you print contains “A, B, C, D” and not something random.

1 Like