Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there,
Is there an quick way to shuffle DynamicNodeList?
Cheers
mkariti
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; }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
DynamicNodeList shuffling
Hi there,
Is there an quick way to shuffle DynamicNodeList?
Cheers
mkariti
Got it! I used this:
is working on a reply...