Suppose, random moves are made to solve Rubik's cube. A move consists of a $90$-degree-rotation of some side. The starting position is also random.
- What is $E(X)$, where $X$ is the number of moves until the cube is solved ?
- How many moves must be made, that the probability that the cube is solved, exceeds $99$% ?
The answer to your first question is a little bit more than the number of possible cube configurations (maybe 25% more). Since a 3x3x3 cube has roughly 43 quintillion configurations, I would estimate it would take around 54 quintillion random moves to get to a solved state in expectation.
To explain how I got here, instead consider the question "if I picked a position from random, what is the expected number of picks until I get the solved state?" It's the same as rolling a (very very) large die numbered 1 to the number of cube configurations. And then counting how many rolls it would take to roll a 1. The answer to this question is, in expectancy, it would take the number of cube configurations (around 43 quintillion).
Your first question is similar to my question, except instead of jumping around to random positions, you can only go one turn at a time. Which means it's relatively likely you will step to a new position, and then randomly step back to that original position. This makes the process for your question "less random" than my question. This means that the answer to your question will be greater than the number of cube configurations.
The good news is, it's still pretty random. What I mean by that is if you take a cube, and randomly do (say) 100 moves, you'll end up in a sufficiently random position. I don't have any formal definition for "sufficient" or why that is true... I'm just going off of my intuition as a cube solving hobbyist, and also the fact that God's Number is 20. This means that the answer to your question won't be MUCH greater than the number of cube configurations (I personally estimate around 25% greater).
I believe the exact answer to your question is hard to get. Here is a Mathologer video asking exactly your question, but not answering it! (In the video, he estimates the value for a 2x2x2 cube. This is what I based my 25% guess off of.) In the video, he calls the answer you seek the Monkey Number of the Rubik's cube. The question he DOES answer, however, is "what is the expected number of moves to get to a solved state, if you start from a solved state?" Here, he gives quite an ingenious proof, and the answer turns out to be exactly the number of cube configurations.