There are quite a lot of descriptions on how to create a random number here in the forum.
The basic concept:
1. Create a Equation type question (which you will hide at the end, but keep it shown during the test phase)
2. Within this equation type question, let's call her "rand" you will include a expression that generates the random number, with a code like this:
What happens here? First LS checks if the random number has already been set. If this is the case, it leaves it like it is. If it is not set, then it creates a random number between 1 and 2 in this example. Why is this necessary? If you don't check if the randomnumber is checked already, there will be a new random number draw whenever you call the "rand" question. But generally you want to just draw the random number once and then it should be fixed.
If you want to have a little bit more flexibility to influence which solution is showing, then you could create a random number from 1-10 with "rand(1,10)" and then in the relevance equations for each of the two questions you can write something like "rand<6" and "rand>5" to show and hide each question.