Cool, Im guessing this is it?
var links = ["scene1","scene2","scene3"];
function untitledFunction() {
// Chooses a random link:
var i = Math.floor(Math.random() * links.length);
// Directs the browser to the chosen target:
hypeDocument.showSceneNamed(links[i], hypeDocument.kSceneTransitionCrossfade, 1.1);
return false;
}
untitledFunction();