# Case 04: Run at Random ## Purpose --- - Make your [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) move(move forward, reverse or change direction) as if in "his" mind. ## Materials --- - 1 x [CutebotKit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) ## Software Platform --- [MicroSoft makecode](https://makecode.microbit.org/#) ## Programming --- ### Step 1 - Click the "Advanced" to see more choices in the MakeCode drawer. ![](./images/cutebot-pk-1.png) - A codebase is required for [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) programming, click “Add Package” at the bottom of the drawer, search ` [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r)` in the dialogue box and download it. ![](./images/cutebot-pk-11.png) ***Note:*** If you met a tip indicating incompatibility of the codebase, you can continue with the tips or build a new project there. ### Step 2 - Choose "show icon" in the `On start`bricks. ![](./images/case_01_02.png) ### Step 3 - Drag `left_speed` and `right_speed` bricks into `forever` brick to set a speed at random from `-100` to `100` of the two wheels. - Assign the two variables of the speed to the left and right wheels. ![](./images/case_04_01.png) ### Programming Links: [https://makecode.microbit.org/_ECTDYXJJiRLk](https://makecode.microbit.org/_ECTDYXJJiRLk) You can also download it directly below:
## Result --- The [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) moves forward, reverses or changes its direction at random. ## Exploration --- ## FAQ --- ## Relevant Files ---