That reminds me of the first card shuffling algorithm I ever wrote, to troll my Data Structures in Java professor.
Instead of taking the card objects at random and swapping them with other cards in the deck at random, which was the obvious way the assignment wanted us to do them, I assigned...