I was working in a Game in VB, and I was making a Loop that will start when the game begin and end when someone win.

But then I found a problem:
I have my main code in the loop and a Randomizer that starts when a button is clicked.
So my problem is that I can't work whit the random number in my loop.

How can I access the random number (it as to be choosen after a click of a button) in my loop?!