Skip to content

Commit bdb703c

Browse files
committed
add src/games/progression-game.js
1 parent cf0e532 commit bdb703c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/games/progression-game.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function progressionElem() {
1616

1717
function progression(seq) {
1818
seq = progressionElem()
19-
let index = randomNum * seq.length
19+
let index = Math.floor(Math.random() * seq.length)
2020
let result = seq[index]
2121
seq[index] = '..'
2222
console.log(`Question: ${seq.join(' ')}`)

0 commit comments

Comments
 (0)