View Single Post
Old 25th May 2006, 05:35   #396
MarquisEXB
Junior Member
 
Join Date: May 2005
Posts: 23
If you want to make sure you don't hear the same songs over & over - you can try 1 of 2 things. The first is to add a lastplay < [3 weeks ago] in your query.

The second is to track the songs you enqueue. For example:

PHP Code:
Do while (playlist.count<=9)
    
Safety=0
    
Do 
    
Safety=Safety+1
    Rand 
Int(Dict1.Count*Rnd+1)
    
idxs Split(itms(Rand), ":", -11)
    
Rand2 CInt(idxs(Int(ubound(idxs)*Rnd+1)))
    
loop until (instr(EnqHistory,Rand2 ":")=0) OR Safety 10000
    mlq
(Rand2).enqueue
    EnqHistory 
EnqHistory Rand2 ":"
Loop 
MarquisEXB is offline   Reply With Quote