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

@ -40,7 +40,7 @@ input.onGesture(Gesture.Shake, () => {
led.stopAnimation()
basic.clearScreen()
basic.pause(200) // display a short pause
if (Math.random(3) == 0) { // 30% chances to add a transaction
if (Math.randomInt(3) == 0) { // 30% chances to add a transaction
// we found a coin!!!
blockchain.addBlock(1);
basic.showIcon(IconNames.Diamond);