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

@ -8,7 +8,7 @@ Complete the following [guided tutorial](/lessons/spinner/activity), your code s
```blocks
input.onGesture(Gesture.Shake, () => {
let randomArrow = Math.random(4)
let randomArrow = Math.randomInt(4)
if (randomArrow == 3) {
basic.showLeds(`
. . # . .
@ -46,7 +46,7 @@ Modify the random number generator so that it can include new arrows we will cre
```blocks
input.onGesture(Gesture.Shake, () => {
let randomArrow = Math.random(8)
let randomArrow = Math.randomInt(8)
if (randomArrow == 3) {
basic.showLeds(`
. . # . .
@ -89,7 +89,7 @@ Let's add more arrows that point diagonally.
```blocks
input.onGesture(Gesture.Shake, () => {
let randomArrow = Math.random(8)
let randomArrow = Math.randomInt(8)
if (randomArrow == 7) {
basic.showLeds(`
. . # . .