MCPcopy Create free account
hub / github.com/MeigenChou/DCTimer-Android / randomCube

Method randomCube

app/src/main/java/cs/min2phase/Tools.java:123–125  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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;

Callers 2

generateScrambleMethod · 0.95
scramble333Method · 0.95

Calls 1

randomStateMethod · 0.95

Tested by

no test coverage detected