()
| 477 | } |
| 478 | |
| 479 | public static String scrambleNobar() { |
| 480 | int[] perm = new int[8]; |
| 481 | int[] ori = new int[8]; |
| 482 | perm[7] = 7; |
| 483 | int p, o; |
| 484 | do { |
| 485 | p = r.nextInt(5040); |
| 486 | o = r.nextInt(729); |
| 487 | Utils.idxToPerm(perm, p, 7, false); |
| 488 | Utils.idxToOri(ori, o, 7, true); |
| 489 | } while (!checkNobar(perm, ori)); |
| 490 | return solve(p, o); |
| 491 | } |
| 492 | |
| 493 | private static String scramble(int minLen) { |
| 494 | int p = r.nextInt(5040); |
no test coverage detected