Old 22nd November 2007, 04:00   #1
NuttySquirrel
Junior Member
 
Join Date: Sep 2004
Posts: 33
Math related question about a playlist

This isn't really a Winamp issue, but I have a question about a playlist.

I have a playlist that has 352 songs.
I'd like to add a certain amount of Christmas songs so that the likelihood of one being played is 1/4 or .25. How would I figure out how many to add in?

I know its got to be simple math but I'm just not thinking about it right.
NuttySquirrel is offline   Reply With Quote
Old 22nd November 2007, 04:38   #2
Wildrose-Wally
The Albertan
 
Join Date: Mar 2001
Posts: 6,122
Add 117 Christmas songs.
Wildrose-Wally is offline   Reply With Quote
Old 22nd November 2007, 04:42   #3
NuttySquirrel
Junior Member
 
Join Date: Sep 2004
Posts: 33
Thanks! How'd you get the number if I may ask?
NuttySquirrel is offline   Reply With Quote
Old 22nd November 2007, 05:33   #4
davatron
Junior Member
 
Join Date: Oct 2007
Posts: 3
Quote:
Originally posted by NuttySquirrel
Thanks! How'd you get the number if I may ask?
Here's the setup:
#of xmas songs/#total songs = 0.25


Here's the algebra involved.

Let X = Number of songs to add



X/(352+X)=0.25

X = 88+0.25X

0.75X=88

X = 117.3(Repeating)

Since there is no way to add .3(Repeating) songs, just round down. This will make the probability slightly lower than .25 (somewhere in the neighborhood of .2494 .. which obviously is VERY close to .25

You can round up to 118 to have a slightly higher chance-- 0.25106

Good luck,
-Davis
davatron is offline   Reply With Quote
Old 22nd November 2007, 05:46   #5
Razzinno
Piffle Producer
 
Razzinno's Avatar
 
Join Date: May 2006
Location: the secret files of my pc
Posts: 2,588
If algebra isn't your bag, just divide 352 by 3, since 352 is going to represent 3 fourths of your playlist.
Razzinno is offline   Reply With Quote
Old 22nd November 2007, 15:06   #6
NuttySquirrel
Junior Member
 
Join Date: Sep 2004
Posts: 33
Ah, that's what I was doing wrong! I was dividing 352 by 4 when I should have been dividing it by 3. Thanks for the help and hope you all have a great Thanksgiving!
NuttySquirrel is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump