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/dice-roll/activity), your code
```blocks
input.onGesture(Gesture.Shake, () => {
let roll = Math.random(6);
let roll = Math.randomInt(6);
if (roll == 5) {
basic.showLeds(`
. # . # .
@ -67,7 +67,7 @@ Modify the line of code with `pick random` so that only number 1-4 can appear on
```blocks
input.onGesture(Gesture.Shake, () => {
let roll = Math.random(4);
let roll = Math.randomInt(4);
if (roll == 5) {
basic.showLeds(`
. # . # .
@ -125,7 +125,7 @@ Let's make a trick dice! Modify the line of code with `pick random` so that only
```blocks
input.onGesture(Gesture.Shake, () => {
let roll = Math.random(4) + 2;
let roll = Math.randomInt(4) + 2;
if (roll == 5) {
basic.showLeds(`
. # . # .