lod_random: better treatment of the buttons