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 bf85953 commit 4710f64Copy full SHA for 4710f64
app/src/main/java/hexlet/code/games/Even.java
@@ -1,13 +1,15 @@
1
package hexlet.code.games;
2
3
+import hexlet.code.Engine;
4
+
5
import java.util.Random;
6
7
public class Even {
8
public static String[][] generateQA() {
- String[][] questionAnswer = new String[3][2];
9
+ String[][] questionAnswer = new String[Engine.MAXROUNDCOUNTER][2];
10
Random random = new Random();
11
for (int i = 0; i < questionAnswer.length; i++) {
- questionAnswer[i][0] = String.valueOf(random.nextInt(100));
12
+ questionAnswer[i][0] = String.valueOf(random.nextInt(Engine.MAXRANDOMNUMBER));
13
questionAnswer[i][1] = isEven(Integer.parseInt(questionAnswer[i][0]));
14
}
15
return questionAnswer;
0 commit comments