//Chooses random quote for front page of cs website

var quote_text = new Array(9);

var quote_author = new Array(9);

quote_text[0] = 'Programs will have to be made up by mathematicians with computing experience and perhaps a certain puzzle solving ability.... There need be no real danger of it ever becoming a drudge, for any processes that are quite mechanical may be turned over to the machine itself.';
quote_author[0] = 'Alan Turing, 1945';

quote_text[1] = 'We are all shaped by the tools we use, in particular: the formalisms we use shape our thinking habits, for better or for worse, and that means that we have to be very careful in the choice of what we learn and teach, for unlearning is not really possible.';
quote_author[1] = 'Edsger W. Dijkstra';

quote_text[2] = 'The purpose of computing is insight, not numbers.';
quote_author[2] = 'Richard Hamming';

quote_text[3] = 'Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.';
quote_author[3] = 'Brian W. Kernighan';

quote_text[4] = 'Computer Science is no more about computers than astronomy is about telescopes.';
quote_author[4] = 'Edsger W. Dijkstra';

quote_text[5] = 'I think there is a world market for maybe five computers.';
quote_author[5] =  'T. J. Watson, 1943';

quote_text[6] = "If you're not failing every now and again, it's a sign you're not doing anything very innovative.";
quote_author[6] = 'W. Allen';

/* quote_text[7] = "64K will be enough for anybody.";
quote_author[7] = 'Bill Gates, 1981'; */

quote_text[7] = "There is no reason for anyone to have a computer at home.";
quote_author[7] = 'Ken Olsen, 1977';

quote_text[8] = 'Who is General Failure, and why is he reading my hard disk?'; 
quote_author[8] = 'Steven Wright';

function randomQuote()
{
   var randomnumber = Math.floor(Math.random()*quote_text.length);
   
   document.getElementById('quoteref').firstChild.data = quote_author[randomnumber];
   document.getElementById('quote').firstChild.data = quote_text[randomnumber];
}
