pxt-calliope/docs/examples/rando.md

9 lines
174 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-06-01 20:42:38 +02:00
led.toggle(Math.randomRange(0, 5), Math.randomRange(0, 5))
2017-02-10 02:40:21 +01:00
})
```