Actually the last time I looked at the source, an unrated song IS the same as a zero rating. The DB stores unrated songs' rating as zero, but it should probably be null. If people are happy for this to change I'll see if I can write a patch tonight.<br>
<br><div class="gmail_quote">On Mon, Jun 29, 2009 at 11:13 AM, D. R. Evans <span dir="ltr"><<a href="mailto:doc.evans@gmail.com">doc.evans@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Leo Franchi said the following at 06/28/2009 07:01 PM :<br>
<div class="im"><br>
>><br>
>> Suppose I want to populate a playlist with random songs from the set<br>
>>  { unrated } $B"@(B { 5 stars }<br>
>> How would I do that?<br>
>><br>
>> The closest I have been able to come seems to select with equal<br>
>> probability<br>
>> from the two sets { unrated } and { 5 stars }, which isn't the same<br>
>> thing<br>
>> at all :-(<br>
><br>
> If you set two 100% proportional biases, you'll end up with a randomly<br>
> selected playlist that always picks from one of those two possible<br>
> conditions.<br>
<br>
</div>Right; that's exactly what I did, with the results I described :-(<br>
<br>
Selecting with equal probability from two disjoint sets is not (in general)<br>
at all the same as selecting randomly from the union of those sets (an<br>
operation which was trivial in 1.4, and which is what I'm trying to do).<br>
<div><div></div><div class="h5"><br>
  Doc<br>
<br>
--<br>
Web:  <a href="http://www.sff.net/people/N7DR" target="_blank">http://www.sff.net/people/N7DR</a><br>
<br>
</div></div><br>_______________________________________________<br>
Amarok mailing list<br>
<a href="mailto:Amarok@kde.org">Amarok@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/amarok" target="_blank">https://mail.kde.org/mailman/listinfo/amarok</a><br>
<br></blockquote></div><br>