diff --git a/Libraries/Core/Utils/RandomUtil.cs b/Libraries/Core/Utils/RandomUtil.cs index f4fe1a5f..2a2c54d9 100644 --- a/Libraries/Core/Utils/RandomUtil.cs +++ b/Libraries/Core/Utils/RandomUtil.cs @@ -435,14 +435,6 @@ public class RandomUtil(ISptLogger _logger, ICloner _cloner) public T? GetArrayValue(IEnumerable list) { - var rand = new Random(); - try - { - return list.ElementAt(rand.Next(0, list.Count())); - } - catch (Exception) - { - return default; - } + return GetCollectionValue(list); } }