Is there an easy way to randomize a list in VB.NET?

后端 未结 8 1412
无人及你
无人及你 2020-12-02 00:35

I have a list of type System.IO.FileInfo, and I would like to randomize the list. I thought I remember seeing something like list.randomize() a li

8条回答
  •  执笔经年
    2020-12-02 01:12

    You could also implement a shuffle, many ways to do this, the simplest is randomly pick a item and insert it into a new location a bunch of times.

提交回复
热议问题