pxt-calliope/docs/examples/rando.md

174 B

Rando

Generate a random coordinate and display it on the LED screen.

basic.forever(() => {
    led.toggle(Math.randomRange(0, 5), Math.randomRange(0, 5))
})