What do you have already?
But for now, i think on: For + random + variable to control whether the result was already shown or not.
On iteration 1 you randomly checks if the result is in this position; If it is, change the control variable;
On iteration 2 if the variable isnt changed already, randomly checks if the result is in this position; If it is, change the control variable;
On 3 you check if the variable is still unchanged; if so, the result is in this position.
Something like this. Of course you can control with other kind of comparisons and instead of a for you can use a while, so you get out of loop as soon as you get the result to be shown....