This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16507|Reply: 1

[Communication] c# scramble arrays

[Copy link]
Posted on 11/24/2017 10:24:38 AM | | |
This post was last edited by QWERTYU on 2017-11-24 10:27

Disrupt the order of a list element. And if it can be used for different types of Lists, you need to use generics.
In fact, the idea is very simple, that is, take a random item from the original List each time, add it to the new List, and delete it in the original List. This is repeated until the original List is empty.
However, it should be noted that if you want to protect the original List from changes, you must copy a List first, and then operate on the Copy






Previous:EF code first attribute string type adds index properties
Next:New Radish Home Ghost Win10 x32 Selected Installed Edition 2017V09 (Perfect Activation)
Posted on 11/24/2017 2:07:10 PM |
  There should be an easier way
Method 3 is a one-sentence thing
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com