pxt-calliope/docs/examples/rando.md

9 lines
164 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(() => {
2018-04-21 19:52:09 +02:00
led.toggle(Math.randomInt(5), Math.randomInt(5))
2017-02-10 02:40:21 +01:00
})
```