Horje
c# shuffle Code Example
c# list shuffle
var rnd = new Random();
var randomized = list.OrderBy(item => rnd.Next());

c# shuffle
private static Random rng = new Random();  

public static void Shuffle<T>(this IList<T> list)  
{  
    int n = list.Count;  
    while (n > 1) {  
        n--;  
        int k = rng.Next(n + 1);  
        T value = list[k];  
        list[k] = list[n];  
        list[n] = value;  
    }  
}




Csharp

Related
play animation through script unity Code Example play animation through script unity Code Example
displayname c# Code Example displayname c# Code Example
asp.net model display name Code Example asp.net model display name Code Example
c# string to enum Code Example c# string to enum Code Example
convert string to int c# Code Example convert string to int c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12