Fix randomInt
This commit is contained in:
@ -34,7 +34,7 @@ basic.showLeds(`
|
||||
. . # . .
|
||||
`)
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random = Math.randomInt(2)
|
||||
let random = Math.randomRange(0, 2)
|
||||
})
|
||||
```
|
||||
|
||||
@ -49,7 +49,7 @@ basic.showLeds(`
|
||||
. . # . .
|
||||
`)
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random = Math.randomInt(2)
|
||||
let random = Math.randomRange(0, 2)
|
||||
if (random == 0) {
|
||||
basic.showString("TRUTH")
|
||||
} else {
|
||||
@ -71,7 +71,7 @@ basic.showLeds(`
|
||||
. . # . .
|
||||
`)
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random = Math.randomInt(2)
|
||||
let random = Math.randomRange(0, 2)
|
||||
if (random == 0) {
|
||||
basic.showString("TRUTH")
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user