Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

randomize through array in C#

// answer coded by 'mdb' and edited later on by 'Caius Jard'

Random rnd = new Random();
string[] MyRandomArray = MyArray.OrderBy(x => rnd.Next()).ToArray();    
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #randomize #array
ADD COMMENT
Topic
Name
8+8 =