26 lines
757 B
C#
26 lines
757 B
C#
// Decompiled with JetBrains decompiler
|
|||
|
|
// Type: MindLated.Protection.Proxy.EnumerableHelper
|
||
|
|
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||
|
|
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
|
||
|
|
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
|
||
|
|
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Linq;
|
||
|
|
|
||
|
|
//#nullable disable
|
||
|
|
namespace MindLated.Protection.Proxy {
|
||
|
|
|
||
|
|
public static class EnumerableHelper
|
||
|
|
{
|
||
|
|
private static readonly System.Random R = new System.Random();
|
||
|
|
|
||
|
|
public static TE Random<TE>(IEnumerable<TE> input)
|
||
|
|
{
|
||
|
|
if (!(input is TE[] eArray))
|
||
|
|
eArray = input.ToArray<TE>();
|
||
|
|
TE[] source = eArray;
|
||
|
|
return ((IEnumerable<TE>) source).ElementAt<TE>(EnumerableHelper.R.Next(source.Length));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|