Skip to content

Need a function to pull random quote in javascript #2

Description

@rbk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions