Change docs to randomInt
This commit is contained in:
@ -39,7 +39,7 @@ the @boardname@ will return a random Number between 0 and the parameter limit.
|
||||
|
||||
```blocks
|
||||
input.onPinPressed(TouchPin.P0, () => {
|
||||
basic.showNumber(Math.random(10))
|
||||
basic.showNumber(Math.randomInt(10))
|
||||
})
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user