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

@ -12,7 +12,7 @@ coll.push("night")
coll.push("cat")
coll.push("cow")
input.onLogoUp(() => {
let index = Math.random(coll.length)
let index = Math.randomInt(coll.length)
let word = coll[index]
basic.showString(word, 150)
})
@ -34,7 +34,7 @@ coll.push("night")
coll.push("cat")
coll.push("cow")
input.onLogoUp(() => {
let index = Math.random(coll.length)
let index = Math.randomInt(coll.length)
let word = coll[index]
basic.showString(word, 150)
})
@ -64,7 +64,7 @@ coll.push("sun")
coll.push("car")
coll.push("ant")
input.onLogoUp(() => {
let index = Math.random(coll.length)
let index = Math.randomInt(coll.length)
let word = coll[index]
basic.showString(word, 150)
})

View File

@ -76,7 +76,7 @@ coll.push("cow")
```blocks
let coll: string[] = []
let index = Math.random(coll.length)
let index = Math.randomInt(coll.length)
let word = coll[index]
```