Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Random Rdio Track
# Rdio console: http://rdioconsole.appspot.com
# Get a track: http://rdioconsole.appspot.com/#keys%3Dt[INSERT 7 DIGITS NUMBER HERE]%26method%3Dget
def get_random_number
1_000_000 + Random.rand(10_000_000 - 1_000_000)
end
track_key = get_random_number
puts track_key
# Track key: 1802693
# http://rdioconsole.appspot.com/#keys%3Dt1802693%26method%3Dget
# Artist Name: Gene Austin
# Track Name: The Sweetheart Of Sigma Chi
# Url: http://rd.io/x/QitZ3oY
# Track key: 5396265
# http://rdioconsole.appspot.com/#keys%3Dt5396265%26method%3Dget
# Artist Name: John Sheridan And His Dream Band
# Track Name: Dream Man Make Me Dream Some More
# Url: https://rd.io/e/QisQCGo
# Track key: 4444296
# http://rdioconsole.appspot.com/#keys%3Dt4444296%26method%3Dget
# Artist Name: An Automotive
# Track Name: I've Given Up Giving Up Drinking
# Url: http://rd.io/x/QisBj8s
# Track key: 5210351
# http://rdioconsole.appspot.com/#keys%3Dt5210351%26method%3Dget
# Artist Name: Lightnin' Hopkins
# Track Name: Hear My Black Dog Bark
# Url: http://rd.io/x/QisN36w
# 100% success rate
# Note: Looks like most numbers starting from “t1” works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment