Umbracians for Unicef - the friendly fundraising
In the spirit of holidays and humanity, we started a fundraising for Unicef. You won't believe what we could change if every visitor on Our Umbraco donated a dollar or euro. Click and find out!
Is there an quick way to shuffle DynamicNodeList?
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;