9 lines
200 B
C#
9 lines
200 B
C#
namespace skyscraper8.UI.MonoGame.Bridge;
|
|
|
|
public static class RandomExtension
|
|
{
|
|
public static T NextItem<T>(this Random rng, T[] array)
|
|
{
|
|
return array[rng.Next(array.Length)];
|
|
}
|
|
} |