Thanks for the help guys. The scramble generator now does not allow moves that were the same as the last, or on the same axis as the last three. I hope this then allows the valid R L set of moves. Here is my updated code. Let me know of any other changes you would recommend.
This is a scramble generating program that I wrote in Java. This is my first time creating a scrambler, so any suggestions about correctness, style, efficiency, etc. would be greatly appreciated. Thanks!
* Rubik's Cube scramble generator
U2 F R2 B L2 U' D L' F' B2 U2 R' L D' B L F' R2 U R U F L2 D2 U2
y' L D R y2 U L' U L D' (x-cross)
U' R U2 R' L U' L'
R' U' R U' R' U R
U2 R U2 R' y' R U' R U' R' U' R (edge control)
U2 (LL skip)
I got 8.59 seconds (pb).
34 moves/8.59 seconds = 3.96 tps