Hi,

The playlist is randomized using Fisher-Yates shuffle (
http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle ) whose
implementation can be found here :
https://github.com/savonet/liquidsoap/blob/master/src/tools/utils.ml#L281

I think that this is correct, but feel free to tell us if you found a
flaw in the implementation :)

++

Sam.

On Wed, May 1, 2013 at 2:07 AM, Ken Restivo <[email protected]> wrote:
> Just curious. I've noticed that a supposedly random playlsit tends to have 
> most of its files towards the beginning of the alphabet play more often.
>
> Could just be superstition, or some other factor at work, but it seems pretty 
> consistent. Filenames in the "d"'s play a lot, filenames in the "s"'s play 
> not very often.
>
> -ken
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to