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

@ -21,7 +21,7 @@ Create a local variable of type number `x` and set it to a random number using `
```blocks
input.onButtonPressed(Button.A, () => {
let x = Math.random(10)
let x = Math.randomInt(10)
})
```
@ -31,7 +31,7 @@ Show the random number on the screen.
```blocks
input.onButtonPressed(Button.A, () => {
let x = Math.random(10)
let x = Math.randomInt(10)
basic.showNumber(x)
})