After shaking the micro:bit, it generates a random number (0 to 31), which will be shown with the led matrix (0 to 5 dots, 5 bits).