* Mike Anderson shaped the electrons to say...
'SQLite' => 'RANDOM()', 'mysql' => 'RAND()', );Can I assume it samples (with replacement, over a uniform probability function) songs at random from the list of all songs, such that an album with twice as many songs as another is twice as likely to be selected in any given draw?
I'm not sure what you can assume. The randomizing asks the database driver for a "random" selection of rows. The goal here was speed - and as few fetches from the DB as possible. If someone would like to refactor this to be properly random, and perhaps without repeats given a certain sample size - patches welcome. :) -D -- <noah> I used to be indecisive, but now I'm not sure. _______________________________________________ Discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
