Fix some bugs
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Utils
|
||||
{
|
||||
public static class ListExtensions
|
||||
{
|
||||
public static void Shuffle<T>(this List<T> list)
|
||||
public static List<T> Shuffle<T>(this List<T> list)
|
||||
{
|
||||
for (int i = list.Count - 1; i > 0; i--)
|
||||
{
|
||||
@@ -13,6 +13,8 @@ namespace Utils
|
||||
|
||||
(list[i], list[j]) = (list[j], list[i]);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
public static T GetRandomAndRemove<T>(this List<T> list)
|
||||
|
||||
Reference in New Issue
Block a user