Skip to content

Commit 80c5d94

Browse files
committed
update Progression.java
1 parent 3766bd2 commit 80c5d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/hexlet/code/games/Progression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static String[] generateProgression() {
2323
Random random = new Random();
2424
String[] qas = new String[2];
2525
int startElement = random.nextInt(MAXSTART);
26-
int step = random.nextInt(MAXSTEP);
26+
int step = random.nextInt(MAXSTEP) + 2;
2727
int length = random.nextInt(MINPROGRESSIONLENGTH) + MINPROGRESSIONLENGTH;
2828
int invisibleElement = random.nextInt(length);
2929
StringJoiner progression = new StringJoiner(" ");

0 commit comments

Comments
 (0)