Skip to content

Instantly share code, notes, and snippets.

@riaf
Forked from hokkai7go/destinations.yaml
Created July 24, 2012 06:22
Show Gist options
  • Save riaf/3168361 to your computer and use it in GitHub Desktop.
Save riaf/3168361 to your computer and use it in GitHub Desktop.
It is used to decide where I travel (in JS)
["Taiwan", "NZL"]
destinations = require('./destinations')
rand = parseInt(Math.random() * 10000, 10) % destinations.length
console.log(destinations[rand])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment