This sounds like a pretty tough thing to do, and I'm unsure what benefit it would actually have for gameplay. I've thought of a way to do it, but it would be a real pain for you to code. Knowing more about what game you're trying to publish would help.
First, you would need to make all variables visible, then you would need to make a random playthrough to each page in the game. Once you get there, write down all the variables you've triggered.
On the random link page at the beginning, have $DEST := "@P" + 1DX where X is however many pages you're planning on including.
Then, you would have a series of lines of code saying "IF $DEST = 1 THEN ..." and go on to set all the variables to the values you found in your random playthrough.
Obviously this method has the disadvantage of being really annoying to do, and only giving the player one possible set of random variables for getting to a single page. You may want to consider a different approach depending on the length of your game and the importance of randomness in variables.