Skip to content

Instantly share code, notes, and snippets.

@medv
medv / random-seinfeld-episode.js
Last active September 6, 2017 14:32
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}`