I think there is a way to do dice rolls. IIRC it's like 1D10, 1D20, etc. For example, name a variable, say, DICEROLL, set equal to 1D20 (% DICEROLL := 1D20—spaces to not screw up page) the page before, and then use a stop sign at the choice links based on the roll to determine where you go.
To make this crystal clear, the way I've done this is the dice roll bit I wrote above happens in the scripting with the top left icon of the page, and the part that is determined BY the dice roll is given in the choices at the bottom of the (next) page. I don't recall if you can do the page scripting and the choices on the same page, though.