SwooshyCueb / strimmer

Collaborative playlisting for an internet radio station
Other
2 stars 0 forks source link

Tweak randomness to be more "fair" #82

Open TheBlackParrot opened 9 years ago

TheBlackParrot commented 9 years ago

Hearing "Something About You" 20 times a day isn't going to cut it

TheBlackParrot commented 9 years ago

same with Savant on Mushrooms

TheBlackParrot commented 9 years ago

commenting for later mCeil((plays ^ -1.1) * dbcount)

total += mCeil((plays[track] ^ -1.1) * dbcount) range: total <--> total + (mCeil((plays[track] ^ -1.1) * dbcount))

track obtained via random(0,total) at end

edit:

issues come in with values (play counts) of 0, as the limit would be approaching infinity at that value

edit 2:

might need off-site testing with random databases or smth