This is a six sided dice if you click the flag it rolls, if you click re-roll it re rolls
I made this using the pick random number between 1 and 6 it’s not that hard