Shuffle shuffle

Somewhere near Programming by approximation I got lost in: