iTunes: Just how random is random?
By David Braue on 08 March 2007
- Introduction
- Say You, Say What?

Think that song has appeared in your playlists just a few too many times? David Braue puts the randomness of Apple's song shuffling to the test -- and finds some surprising results.
Quick -- think of a number between one and 20. Now think of another one, and another, and another.
Starting to repeat yourself? No surprise: in practice, many series of random numbers are far less random than you would think.
Computers have the same problem. Although all systems are able to pick random numbers, the method they use is often tied to specific other numbers -- for example, the time -- that means you could get a very similar series of 'random' numbers in different situations.
This tendency manifests itself in many ways. For anyone who uses their iPod heavily, you've probably noticed that your supposedly random 'shuffling' iPod seems to be particularly fond of the Bee Gees, Melissa Etheridge or Pavarotti. Look at a random playlist that iTunes generates for you, and you're likely to notice several songs from one or two artists, while other artists go completely unrepresented.
This phenomenon has been observed widely across the world, with many conspiracy theorists suggesting there was more method than madness to Apple's randomisation routines.
Just what are they implying? Consider, for a minute, that you're a music industry marketer. There could be little more tempting than direct access to the ears -- and, indirectly, the wallets -- of tens of millions of iPod users around the world.
Through payment of a fee, the theory goes, a record label could increase the rotation frequency of their own music by tweaking Apple's randomisation formula. Popular songs and artists from their catalogue would pop up on playlists time and again, potentially explaining why your 50-strong playlist includes half a dozen Jackson 5 tracks but no Jackson Browne.
Less insidiously, iTunes could be tracking the songs you like the most -- it already does this -- then rotating them more often into its playlists.
Concerns over the randomness of Apple's randomness have even reached the ears of Steve Jobs, who has emphatically denied that the iPod's shuffle feature -- and the design of the iPod Shuffle itself -- is anything more than random. Just tell that to the hundreds of forum participants posters who have posted their complaints about the devices' playlist approach.
After an afternoon spent listening to far too much Bon Jovi, we decided to put iTunes to the test.
Building the perfect library
To evaluate iTunes' randomness, we borrowed a Mac Mini from Apple, with its fresh install of Mac OS X ensuring that we were working with an empty iTunes library and an otherwise completely clean slate.
We purchased AU$170 worth of Apple iTunes Music Store prepaid cards, then proceeded to go on a carefully planned shopping spree. As it was necessary to have multiple songs from one artist to observe any untoward clustering, we purchased five songs from each of four artists, with four artists chosen arbitrarily from the online artist lists of each of the major music labels (EMI, Sony, Universal and Warner Music).
This gave us a total of 80 songs. To see whether popular songs were being rotated more frequently, we also purchased 20 more songs from Billboard's current (as of late February) Top 50 chart, which represented a variety of labels. All told, we purchased and downloaded 100 iTunes songs from the iTunes Music Store (download the spreadsheet for the full song list here).
We then used the Smart Playlist feature to force iTunes to make random playlists 25 and 40 songs long, respectively. Ten playlists of each length were created, providing a total of 20 playlists and 650 possible song positions. Each song list was exported to a text file for analysis using Microsoft Excel.
If Apple and the labels were including any information to change songs' priority, it would arguably be stored in the downloaded AAC files. To test this, we also added another 100 MP3 files, previously ripped from a variety of CDs, that definitely contained no extra coding information whatsoever. These artists included Def Leppard, Bon Jovi, Erasure, Maroon 5, Bob Seger and even John Denver & The Muppets for variety.
With 200 songs in the iTunes Library, we then repeated the random playlist test, creating an additional ten playlists with each of 25 and 40 songs.
Topics: apple, itunes, ipod, shuffle, random, music, songs, playlist, song, itune
Related Articles
Advanced iTunes: Get more from the software
Create Smart Playlists in iTunes
Apple iTunes 9
iTunes playlists: Getting started
Comments (87)
-
Tommii commented on 08/11/2009 23:04 Report abuse
I had a playlist of 50 songs on shuffle, there was only one song that was in the playlist twice ans surprise-surprise apple's "shuffle" feature played them back to back.
-
Fiiish commented on 03/11/2009 11:18 Report abuse
I think that the random issue is not just with itunes but with the mac book pro also. I play a game called civilization 4 on a mac book pro running Mac OSX 10.5.8. I partitioned the drive and run a copy of windows to play the game. When the game starts you can choose to play music randomly from a chosen file. I play mine from an external hard drive with a music folder. As long as the game continues the music seems random, but if you reload the game the same same band begins almost every time. For about a year every reload played Jethro Tull, and now its on a jefferson Airplane series. Not only that but if you reload again it plays a different Jefferson Airplane song in the same order on each reload. No randomness there. I have tried shuffeling the order of the songs on the hard drive with no change. If I play the game with the hard drive on any other pc the music is totally random. I even had a friend bring over his hard drive with a similar song list and the mac again went on its Jefferson Airplane kick. Any ideas on how to solve this would be great.
-
Fiiish commented on 03/11/2009 10:37 Report abuse
I think that the random issue is not just with itunes but with the mac book pro also. I play a game called civilization 4 on a mac book pro running Mac OSX 10.5.8. I partitioned the drive and run a copy of windows to play the game. When the game starts you can choose to play music randomly from a chosen file. I play mine from an external hard drive with a music folder. As long as the game continues the music seems random, but if you reload the game the same same band begins almost every time. For about a year every reload played Jethro Tull, and now its on a jefferson Airplane series. Not only that but if you reload again it plays a different Jefferson Airplane song in the same order on each reload. No randomness there. I have tried shuffeling the order of the songs on the hard drive with no change. If I play the game with the hard drive on any other pc the music is totally random. I even had a friend bring over his hard drive with a similar song list and the mac again went on its Jefferson Airplane kick. Any ideas on how to solve this would be great.
-
cereal commented on 29/10/2009 01:46 Report abuse
Funkleberry - thank you! Itunes definitely repeats certain songs while skipping others forever. It's particularly noticeable if your mp3's came from albums, like most of mine did. I use iTunes for "random" shuffle almost all the time, that's the main thing it has for me over actually putting on a record on the "stereo." But it clearly is not "random" or even close. I swear I hear"Hang on to Yourself" at least once every couple days, but never any other tracks from Ziggy Stardust - ever.
I have never bought music from Apple or downloaded anything, so I doubt I'm playing many files that have been secretly programmed by Apple to repeat more as per terms of some contract with EMI or whoever. I also don't think Apple is benefitting from me hearing Aphex Twin instead of The Byrds; but perhaps iTunes has a HAL-9000 mentality, and is trying to convert me to techno. Well, it wasn't working, and now thanks to Mr. Funkleberry, I don't have to worry about it.
Half hour into this new "playlist" and I'm hearing songs that have not been played in probably forever. Both bad and good, but at least - clearly more random.
Hartelijke bedankt/merci mille fois/thanks ever so much! -
Steph commented on 11/10/2009 14:59 Report abuse
I've noticed this too.
when ever i randomize my playlists the same artist are played: Taylor Swift, Cobra Starship, Flo-Rida, Kanye West and P!nk. and other artist that are famous right now.
These artist are all in the itunes 200 right now and my itunes keeps playing their songs.
So i believe what this article has reserched. -
Aaron802 commented on 03/10/2009 15:11 Report abuse
I did an experiment to test randomness with iTunes smart playlists. I created 26 2-second mp3 files and titled them "A", "B", "C",...,"Z" with the same genre "test1". Then I made a Helper playlist: genre="test1" select 15 items by least recently played. Then I made the Main playlist to pick from the Helper playlist and select 15 items at random. My thinking is that when a song plays on the Main playlist, it also falls off the the Helper playlist until 11 more songs have played then it makes it back on the Helper playlist. At which point, the Main playlist has a 1/15 chance of picking that song again to put back in it's lineup. What I found was no randomness at all. After letting the songs all play through, both playlists became exactly alike with the same sequence of songs. The Main playlist picked songs in the exact order they appears in the Helper playlist. Even with manual shuffling and manually playing songs out of order, both list eventually became the same. Please someone tell me my error and why this doesn't work.
-
Emeldi commented on 14/09/2009 01:25 Report abuse
Keep in mind that a truly random system often doesn't look random or evenly distributed. When a human tries to make something random, they tend to evenly distribute. When a system is truly random, the results only begin to look uniform with huge samples, and tend to appear skewed slightly in smaller samples.
"Scientist" is right, you'd have to run the experiment clean again with the same songs and find out if Lionel still keeps the number one spot or not to see if there really was any weight. If the second set of results closely matches the first then there is a discrepancy, but if new artists climb to the top than it is probably more random than you think. -
Funkleberry commented on 07/09/2009 08:16 Report abuse
I guess my point is that I have worked out how to get all my songs on my PC to play without repeating (below).
Also if I set the limit at 50 items it does not repeat any artists but it does play the playlist in whichever sort order you select ie Artist, size or whatever. So my mission is accomplished. I'll leave it to you statistical types to argue about the degree of randomness. My requirement was to shuffle all of my songs and play through all of them once without repeating... I wanted this over truly statistical randomness. (Btw I read hat the world record for red's coming up consecutively on a roulete wheel was 28 . . . and you certainly wouldn't want that principle to work on your iPod. :-) -
scientist commented on 06/09/2009 23:16 Report abuse
very nice blog, thanks. However, there is a major statistical problem with your approach, and that would be that you would have to repeat the experiment fro scratch a couple of times. if then the results were identical (i.e. very similar) we could assume something from it...
with what we have now we cannot make any statement because we cannot exclude pure randomness nor that their is a glitch in the itunes program that causes this seemingly non-random distribution.
if, let's say, the same songs were to appear in your top ten list repeatedly (with the whole process: new computer, fresh downloaded songs, freshly ripped cd's etc) one could conclude that there must be info to the songs that we are unaware of that itunes uses in the construction of the playlists. until then we may as well postulate that a computer simply cannot produce real random lists...
i am afraid, more we cannot conclude at this stage. so please go ahead and repeat this experiment a couple of times...then we will see... -
Funkleberry commented on 06/09/2009 12:29 Report abuse
I think I have solved my immediate is using itunes 8. This involves setting up a new smart playlist and selecting the Playcount is 0.
Then limit the number of items to a reasonable number selected by random and check the Live Updating box . . .
What this does is that each time a song finishes playing, it drops off th eplay list and brings in another one. This is on my PC. When I play the playlist on the ipod, I suspect that the songs will remain in the playlist until the next synchronisation.
This gives me some confidence that I can get through all of my songs before I pass away in a few years time.
Once all of the songs have played you can either reset the count to 0 or modify the select rule to your taste. I hope that helps a bit.
Post your own comment
Enter your personal information to the left, or sign in with your Facebook account by clicking the button below.
ConnectThe Explain Series
-
Get (laptop) smart before you buy
Win the numbers game and get the laptop that's perfect your needs as well as your budget!
-
Microsoft Windows® 7. Your PC, simplified.
Windows® 7 has been designed to be more reliable, more responsive, and to make the things you do every day easier.
-
Whereis® maps
If you’d like to get to know more of Australia, and do it safely, then check out Whereis® maps.
-
Commonwealth Bank Mobile Banking
Bank anywhere, anytime. Learn more.
-
Nokia Navigation
The introduction of GPS adds a new dimension of 'social navigation'.
Must read
-
Music industry urged to drop download prices
The music industry needs to drastically cut the price it charges for...
-
Sony softens stance on DRM
Sony BMG Music Entertainment, the world's second largest music label, has...
-
eJamming helps virtual bands meet online
New technology on show at CES allows musicians from across the globe to...
-
How to find album art for your iPod
Sick of seeing grey squares parading across your iPod? We show you how to...
-
Top free CD/DVD burning apps
Want a quick and dirty app for burning CDs on the cheap? Here are three...









2%
1%




More comments... 11 - 20