GPIO Buttons & Random

I’m trying to re-assign a Gpio button to toggle random on and off (I’ve also tried shuffle) but to no effect.
Has anyone tried and succeeded?