What would be really cool is to have a javascript function pull a random quote.
This easy fairly easy, but one feature I would like to have is one that would never pull the same quote twice in a row.
For example, if I ask for a random quote 10 times, I would not see the same quote twice in those 10 executions of the function. The function that does random quotes maintains a list of previously loaded quotes and gives you a fresh quote each time until you have seen each quote exactly one time.
What would be really cool is to have a javascript function pull a random quote.
This easy fairly easy, but one feature I would like to have is one that would never pull the same quote twice in a row.
For example, if I ask for a random quote 10 times, I would not see the same quote twice in those 10 executions of the function. The function that does random quotes maintains a list of previously loaded quotes and gives you a fresh quote each time until you have seen each quote exactly one time.