Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int t = 0; t < 2 * ll; t++) {
- int p = (int) Math.random();
- if (p % 2 == 0) {
- if (checkterm != ll) {
- a[t] = deck.getFclist()[(int) (Math.random() * (ll))].getTerm();
- boolean check1 = true;
- int check2 = 0;
- for (int g = 0; check2 == 2 * ll; g++) {
- // if (p == bt[g]) {
- // p = (int) Math.random();
- // g = 0;
- // }
- // }
- if (a[t].equals(a[g])) {
- a[t] = deck.getFclist()[(int) (Math.random() * (ll))].getTerm();
- check1 = false;
- }
- if (check1)
- check2++;
- if (g == ll - 1) {
- g = 0;
- }
- // bt[t] = p;
- }
- System.out.println(a[t]);
- checkterm++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement