Get Umbraco Certified in October

5 courses in 4 different countries across 2 continents leaves no excuse.

Attend courses in the Netherlands, UK, USA and at Umbraco HQ in Denmark.

See the schedule and read more about our training here.

Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Moshe Kariti 425 posts 899 karma points
    Mar 04, 2012 @ 13:48
    Moshe Kariti

    DynamicNodeList shuffling

    Hi there,

    Is there an quick way to shuffle DynamicNodeList?



  • Moshe Kariti899 karma points
    Mar 04, 2012 @ 14:43
    Moshe Kariti

    Got it! I used this:


    Random r = new Random(); 
         for (int n = pagesToList.Count() - 1; n > 0; --n)
             int k = r.Next(n + 1);
             DynamicNode temp = pagesToList.Items[n];
             pagesToList.Items[n] = pagesToList.Items[k];
             pagesToList.Items[k] = temp;
Please Sign in or register to post replies

Write your reply to:

Draft is the community mothership for Umbraco, the open source cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0