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

@ -16,7 +16,7 @@ basic.showLeds(`
. . # . .
`)
input.onButtonPressed(Button.A, () => {
let random = Math.random(2)
let random = Math.randomInt(2)
if (random == 0) {
basic.showString("TRUTH")
} else {
@ -45,7 +45,7 @@ basic.showLeds(`
. . # . .
`)
input.onButtonPressed(Button.A, () => {
let random = Math.random(3)
let random = Math.randomInt(3)
if (random == 0) {
basic.showString("TRUTH")
} else {
@ -75,7 +75,7 @@ basic.showLeds(`
. . # . .
`)
input.onButtonPressed(Button.A, () => {
let random = Math.random(2)
let random = Math.randomInt(2)
if (random == 1) {
basic.showString("TRUTH")
} else if (random == 0) {