Skip to content

Commit 4710f64

Browse files
committed
update Even.java
1 parent bf85953 commit 4710f64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
package hexlet.code.games;
22

3+
import hexlet.code.Engine;
4+
35
import java.util.Random;
46

57
public class Even {
68
public static String[][] generateQA() {
7-
String[][] questionAnswer = new String[3][2];
9+
String[][] questionAnswer = new String[Engine.MAXROUNDCOUNTER][2];
810
Random random = new Random();
911
for (int i = 0; i < questionAnswer.length; i++) {
10-
questionAnswer[i][0] = String.valueOf(random.nextInt(100));
12+
questionAnswer[i][0] = String.valueOf(random.nextInt(Engine.MAXRANDOMNUMBER));
1113
questionAnswer[i][1] = isEven(Integer.parseInt(questionAnswer[i][0]));
1214
}
1315
return questionAnswer;

0 commit comments

Comments
 (0)