Make randomRange more consistent in docs (#1032)

* Make randomRange more consistent in docs

* Change formulation
This commit is contained in:
Guillaume Jenkins
2018-08-02 14:49:16 -04:00
committed by GitHub
parent 49cd197cef
commit 7f4cf50ee0
2 changed files with 8 additions and 8 deletions

View File

@ -15,12 +15,12 @@ input.onGesture(Gesture.Shake,() => {
## Example: random number
This program shows a number from `0` to `9` when you shake the @boardname@.
This program shows a number from `2` to `9` when you shake the @boardname@.
```blocks
input.onGesture(Gesture.Shake,() => {
let x = Math.randomRange(0, 10)
basic.showNumber(x, 100)
let x = Math.randomRange(2, 9)
basic.showNumber(x)
})
```