pxt-calliope/docs/examples/rando.md

9 lines
174 B
Markdown
Raw Normal View History

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