Generates a random cube. The random source can be set by cs.min2phase.Tools#setRandomSource(java.util.Random) @return A random cube in the string representation. Each cube of the cube space has almost (depends on randomSource) the same probability. @see cs.min2phase.Tools#setRandomSou
()
| 121 | * @see cs.min2phase.Search#solution(java.lang.String facelets, int maxDepth, long timeOut, long timeMin, int verbose) |
| 122 | */ |
| 123 | public static String randomCube() { |
| 124 | return randomState(STATE_RANDOM, STATE_RANDOM, STATE_RANDOM, STATE_RANDOM); |
| 125 | } |
| 126 | |
| 127 | private static int resolveOri(int[] arr, int base) { |
| 128 | int sum = 0, idx = 0, lastUnknown = -1; |
no test coverage detected