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

@ -19,13 +19,13 @@ An if statement will conditionally run code depending on whether or not a condit
## 2. Create a Variable called ``x`` and assign it to a random number between 0 and 2.
```blocks
let x = Math.random(3)
let x = Math.randomInt(3)
```
## 3. Write the 'if statement' to check if ``x`` is equal to 2. Inside the 'if statement', display the string "Yes".
```blocks
let x = Math.random(3)
let x = Math.randomInt(3)
if (x == 2) {
basic.showString("Yes", 150)
}
@ -34,7 +34,7 @@ if (x == 2) {
## 4. Write the 'if statement' to check if ``x`` is equal to 1. Inside the 'if statement', display the string "No."
```blocks
let x = Math.random(3)
let x = Math.randomInt(3)
if (x == 2) {
basic.showString("Yes", 150)
} else if (x == 1) {
@ -45,7 +45,7 @@ if (x == 2) {
## 5. Write the code to display the string "I don't know" if the Variable ``x`` is neither 2 nor 1.
```blocks
let x = Math.random(3)
let x = Math.randomInt(3)
if (x == 2) {
basic.showString("Yes", 150)
} else if (x == 1) {