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 c2a4778 commit 1282198Copy full SHA for 1282198
brain_games/games/brain_progression.py
@@ -8,7 +8,7 @@ def question_generator():
8
progression_length = random.randint(5, 10) #NOSONAR
9
start = random.randint(1, 20) #NOSONAR
10
step = random.randint(1, 5) #NOSONAR
11
- hidden_index = random.randint(1, progression_length - 2)
+ hidden_index = random.randint(1, progression_length - 2) #NOSONAR
12
progression = [str(start + i * step) for i in range(progression_length)]
13
correct_answer = progression[hidden_index]
14
progression[hidden_index] = '..'
0 commit comments