pxt-calliope/docs/examples/rando.md
Amerlander 64471a53f9
fetch pxt-microbit v2.2.30 (#102)
* undo buttonEvent

* fetch microbit v2.2.30

Co-authored-by: Amerlander <gitkraken@juriwolf.de>
2020-05-08 09:35:38 -07:00

9 lines
174 B
Markdown

# Rando
Generate a random coordinate and display it on the LED screen.
```blocks
basic.forever(() => {
led.toggle(Math.randomRange(0, 4), Math.randomRange(0, 4))
})
```