This circuit simulates a dice being thrown. Pressing the button “throws” the dice. One of six LEDs will light up after the throw.
Each LED has a value from left to right of one to six. If the second LED lights up, the value thrown is 2, if the fifth LED lights up, the value thrown is 5, etc.