myFacts = new Array()

//list of facts
myFacts[0] = "The pole at the rear of a ship were flag are pinned is called a jack. The Union flag changed its name to Union Jack.";
myFacts[1] = "A rainbow can never be seen at high noon.  The sun has to be at less than 42 degrees.";
myFacts[2] = "Bowling shoes are designed to be ugly so that nobody steels them.";
myFacts[3] = "The British Pound Sterling got its name from the medieval starling coin, which had a star embossed on it.";
myFacts[4] = "The word astronaut is made up of the Greek words astron (star) and naut (sailor).";
myFacts[5] = "The name Manhattan is derived from a local Indian word meaning &#39;where we were cheated&#39;."
myFacts[6] = "The Tube was the world&#39;s first underground train.  It opened 1893."
myFacts[7] = "Erik the Red discovered an island covered in snow and ice.  He called it Greenland to encourage people to emigrate there."
myFacts[8] = "Venice was the inspiration to the game Snakes and Ladders.  Built on swampland, it provided home for many frogs and snakes."
myFacts[9] = "As punishment for betraying Zeus, Atlas has to carry the earth on his shoulders."
//end of list of facts
factCt = myFacts.length;

function randomFact(){
index = Math.floor((Math.random() * factCt))
document.write(myFacts[index])
}



