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

@ -62,7 +62,7 @@ let column = 0
let index = 0
input.onButtonPressed(Button.AB, () => {
for (let index = 0; index <= 4; index++) {
list[index] = Math.randomInt(5) + 1
list[index] = Math.randomRange(0, 5) + 1
}
})
input.onButtonPressed(Button.B, () => {
@ -142,7 +142,7 @@ input.onButtonPressed(Button.B, () => {
})
input.onButtonPressed(Button.AB, () => {
for (let index = 0; index <= 4; index++) {
list[index] = Math.randomInt(5) + 1
list[index] = Math.randomRange(0, 5) + 1
}
})
input.onButtonPressed(Button.A, () => {
@ -223,7 +223,7 @@ input.onButtonPressed(Button.A, () => {
})
input.onButtonPressed(Button.AB, () => {
for (let index = 0; index <= 4; index++) {
list[index] = Math.randomInt(5) + 1
list[index] = Math.randomRange(0, 5) + 1
}
})
input.onButtonPressed(Button.B, () => {