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

@ -9,7 +9,7 @@ These are the answers to the [dice roll quiz](/lessons/dice-roll/quiz).
<br/>
```blocks
let roll = Math.random(6)
let roll = Math.randomInt(6)
```
## 2. If the variable "roll" equals 5, write the code that will plot the image below
@ -19,7 +19,7 @@ let roll = Math.random(6)
<br/>
```blocks
let roll = Math.random(6)
let roll = Math.randomInt(6)
if (roll == 5) {
basic.showLeds(`
. # . # .
@ -39,7 +39,7 @@ if (roll == 5) {
```blocks
let roll = Math.random(6)
let roll = Math.randomInt(6)
if (roll == 5) {
basic.showLeds(`
. # . # .
@ -68,7 +68,7 @@ Note: students are only required to write the bottom half of this answer, starti
<br />
```blocks
let roll = Math.random(6)
let roll = Math.randomInt(6)
if (roll == 4) {
basic.showLeds(`
. . . . .
@ -97,7 +97,7 @@ Note: students are only required to write the bottom half of this answer, starti
<br />
```blocks
let roll = Math.random(6)
let roll = Math.randomInt(6)
if (roll == 3) {
basic.showLeds(`
. . . . .