# Case 02: Dice ## Purpose Use the Smart Coding Kit to make a wearable dice. ## Products Link 1 x [ELECFREAKS micro:bit Smart Coding Watch Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-coding-watch-kit-without-micro-bit-board?_pos=2&_sid=ce4e7cb69&_ss=r) ![](./images/smart_coding_kit_case_02_01.png) ## Software [MicroSoftmakecode](https://makecode.microbit.org/#) ## Programming Drag out an `on shake` block from `input`. Create a variable `num` and assign value to this variable with a random number among 1-6. Insert a `if` block. If the picked random number is 0, then display one point. If the random number is 2, then display two points. And so on. ![](./images/smart_coding_kit_case_02_02.png) ### Link Linkļ¼[https://makecode.microbit.org/_hiRiC6PPT4Pd](https://makecode.microbit.org/_hiRiC6PPT4Pd) You can also download it directly below:
## Result A random number will be created each time when we shake our micro:bit. ## Exploration ## FAQ ## Relevant File