View Full Version : Random Quote Generator

10-22-2012, 11:37 PM
My random quote generator isn't working for some reason, so could someone point out what I'm doing wrong and help me fix it? PS- For a school project.


<script type="text/javascript">
var quotes = new Array(
"George, how long's it gonna be till we get that little place an' live on the fatta the lan' -an' rabbits?"
, "I... ain't gonna say nothin'. Jus' gonna stan' there."
, "O.k. -O.k. I'll tell ya again. I ain't got nothing to do. Might jus' as well spen' all my time tellin' you things and then you forget 'em, and I tell you again."
, "Lennie! Lennie, for God' sakes, don't drink so much."
<script type="text/javascript">
function GenerateQuote() {
var quotenumber=Math.random() * quotes.length;

10-25-2012, 08:29 PM
As the rules and regulations say, we don't fix school projects. That's cheating.