We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0e532 commit bdb703cCopy full SHA for bdb703c
src/games/progression-game.js
@@ -16,7 +16,7 @@ function progressionElem() {
16
17
function progression(seq) {
18
seq = progressionElem()
19
- let index = randomNum * seq.length
+ let index = Math.floor(Math.random() * seq.length)
20
let result = seq[index]
21
seq[index] = '..'
22
console.log(`Question: ${seq.join(' ')}`)
0 commit comments