pxt-calliope/docs/examples/rando.md
2018-04-21 10:52:09 -07:00

9 lines
164 B
Markdown

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