The random shuffle code is here. Without having worked through all the details, it looks like it is using mysql to "order by RAND()"
http://svn.slimdevices.com/7.0/trunk/server/Slim/Plugin/RandomPlay/Plugin.pm?revision=19572&view=markup That is, mysql generates a random number for each matching track then returns them in the order of those random numbers. Unless I am mistaken that is not Fisher-Yates? Anyone know what rng algorithm is used by mysql, and how is it seeded? My google skills seem to be lacking. _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
