Advertisement
gdog2u

KBowl solution

Mar 20th, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. String[] questions = new String[60];
  2.         int j = 0;
  3.         int k = 0;
  4.         for(int i = 0; i < 20;i++){
  5.             for(; j < (k+3); j++){
  6.                 Random r = new Random();
  7.                 int rI = r.nextInt();
  8.                 while(rI%2 != 0){
  9.                     rI++;
  10.                 }
  11.                 questions[j] = arrays[i][rI];
  12.             }
  13.             k = j;
  14.         }
  15.         return questions;
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement