Change docs to randomInt

This commit is contained in:
Sam El-Husseini
2018-04-21 10:52:09 -07:00
parent 99a28e59f1
commit 6b9e78d269
61 changed files with 152 additions and 152 deletions

View File

@ -34,7 +34,7 @@ basic.showLeds(`
. . # . .
`)
input.onButtonPressed(Button.A, () => {
let random = Math.random(2)
let random = Math.randomInt(2)
})
```
@ -49,7 +49,7 @@ basic.showLeds(`
. . # . .
`)
input.onButtonPressed(Button.A, () => {
let random = Math.random(2)
let random = Math.randomInt(2)
if (random == 0) {
basic.showString("TRUTH")
} else {
@ -71,7 +71,7 @@ basic.showLeds(`
. . # . .
`)
input.onButtonPressed(Button.A, () => {
let random = Math.random(2)
let random = Math.randomInt(2)
if (random == 0) {
basic.showString("TRUTH")
} else {