« * K @srekel.net

Andrew Helmer @andrewhelmer.bsky.social

2026-11-09 20:53 UTC

I never posted it on Bluesky before, I wrote this in 2021 about Kensler's permute, which seemed magic to me when I learned about it. You can loop over an array in pseudorandom order - sample without replacement - without keeping track of which elements were seen! andrew-helmer.github.io/permute/

Link: Andrew Kensler's permute() | A function for stateless, constant-time pseudorandom-order array itera… (andrew-helmer.github.io/permute/)

88 likes, 18 reposts, 1 replies

3 Next post4 More from @andrewhelmer.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup