Skip to content

Instantly share code, notes, and snippets.

@medv
Last active September 6, 2017 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save medv/575240027c99141e5f258a4a8fb760d0 to your computer and use it in GitHub Desktop.
Save medv/575240027c99141e5f258a4a8fb760d0 to your computer and use it in GitHub Desktop.
random-seinfeld-episode
const Seasons = [5, 12, 23, 24, 22, 24, 24, 22, 24]
const Season = Math.floor(Math.random() * Seasons.length)
const Episode = Math.floor(Math.random() * Seasons[Season])
window.location = `https://www.google.com/search?q=Seinfeld+Season+${Season+1}+Episode+${Episode+1}`
@medv
Copy link
Author

medv commented Sep 6, 2017

You're welcome

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