pxt-calliope/docs/examples/rando.md

9 lines
158 B
Markdown
Raw Normal View History

2017-02-10 02:40:21 +01:00
# Rando
Generate a random coordinate and display it on the LED screen.
2017-02-10 02:40:21 +01:00
```blocks
basic.forever(() => {
led.toggle(Math.random(5), Math.random(5))
})
```