Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. for (int t = 0; t < 2 * ll; t++) {
  2.  
  3. int p = (int) Math.random();
  4.  
  5. if (p % 2 == 0) {
  6. if (checkterm != ll) {
  7. a[t] = deck.getFclist()[(int) (Math.random() * (ll))].getTerm();
  8. boolean check1 = true;
  9. int check2 = 0;
  10. for (int g = 0; check2 == 2 * ll; g++) {
  11.  
  12. // if (p == bt[g]) {
  13. // p = (int) Math.random();
  14. // g = 0;
  15. // }
  16. // }
  17. if (a[t].equals(a[g])) {
  18. a[t] = deck.getFclist()[(int) (Math.random() * (ll))].getTerm();
  19. check1 = false;
  20. }
  21. if (check1)
  22. check2++;
  23. if (g == ll - 1) {
  24. g = 0;
  25. }
  26.  
  27. // bt[t] = p;
  28.  
  29. }
  30. System.out.println(a[t]);
  31. checkterm++;
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement