File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/src/main/java/hexlet/code/games Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11package hexlet .code .games ;
22
3+ import hexlet .code .Engine ;
4+
35import java .util .Random ;
46
57public class GCD {
68 public static String [][] generateQA () {
79 Random random = new Random ();
8- String [][] questionAnswer = new String [3 ][2 ];
10+ String [][] questionAnswer = new String [Engine . MAXROUNDCOUNTER ][2 ];
911 for (int i = 0 ; i < questionAnswer .length ; i ++) {
10- int firstNumber = random .nextInt (30 );
11- int secondNumber = random .nextInt (30 );
12+ int firstNumber = random .nextInt (Engine . MAXRANDOMNUMBER );
13+ int secondNumber = random .nextInt (Engine . MAXRANDOMNUMBER );
1214 questionAnswer [i ][0 ] = firstNumber + " " + secondNumber ;
1315 questionAnswer [i ][1 ] = String .valueOf (evklidRespect (firstNumber , secondNumber ));
1416 }
You can’t perform that action at this time.
0 commit comments