diff --git a/MLEM.Extended/Extensions/RandomExtensions.cs b/MLEM.Extended/Extensions/RandomExtensions.cs index d55b797..efc9327 100644 --- a/MLEM.Extended/Extensions/RandomExtensions.cs +++ b/MLEM.Extended/Extensions/RandomExtensions.cs @@ -1,4 +1,5 @@ using System; +using Microsoft.Xna.Framework; using MonoGame.Extended; namespace MLEM.Extended.Extensions { @@ -12,5 +13,9 @@ namespace MLEM.Extended.Extensions { return random.NextSingle(range.Min, range.Max); } + public static Vector2 Vector2(this Random random, float min, float max) { + return new Vector2(random.NextSingle(min, max), random.NextSingle(min, max)); + } + } } \ No newline at end of file