This commit is contained in:
CWX
2025-01-14 20:19:42 +00:00
+6
View File
@@ -440,4 +440,10 @@ public List<T> Shuffle<T>(List<T> originalList)
? parts[1].Length
: 0;
}
public T GetArrayValue<T>(IEnumerable<T> list)
{
var rand = new Random();
return list.ElementAt(rand.Next(0, list.Count()));
}
}