having trouble using setInterval and with random number generation
<p>I'm trying to create a random quote generator. I have created a function called timer that runs another function pickQuote every 400ms but at the moment this doesn't seem to work. in pickQuote I run a function randomNumberGen that creates a random number. My problem in the randomNumberGen is that I want to have an if or if..else in place that checks whether or not the new random number is different from the current quotes[randomNumber] but i'm unsure how to do this. </p>

<p>Can anyone provide me with some insight on how I can achieve this?</p>

<p>My current effort can be viewed here: <a href="http://jsbin.com/aqinud/12/edit" rel="nofollow">http://jsbin.com/aqinud/12/edit</a></p>
