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

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