Fix randomInt

This commit is contained in:
Sam El-Husseini
2018-06-01 11:42:38 -07:00
parent b5814709f8
commit 6f148c14e0
61 changed files with 152 additions and 158 deletions

View File

@ -23,7 +23,7 @@ We are going to create a meter that displays a random number from *0* to *10*. W
```blocks
input.onPinPressed(TouchPin.P0, () => {
let x = Math.randomInt(10)
let x = Math.randomRange(0, 10)
})
```
@ -33,7 +33,7 @@ Finally, let's show that number on the @boardname@. You are registering an event
```blocks
input.onPinPressed(TouchPin.P0, () => {
let x = Math.randomInt(10)
let x = Math.randomRange(0, 10)
basic.showNumber(x)
})