You need a hardware way to create a random number. You have $random for simulation but not hardware.
I would suggest creating an lfsr which runs and when a button is pressed, you capture the current value which you count up to, or preset a counter and count down to 0.