Fix some bugs

This commit is contained in:
WillJeynes
2026-08-28 22:02:44 +01:00
parent 63b2798432
commit 44c59c425c
22 changed files with 596 additions and 29 deletions
+3 -1
View File
@@ -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)