mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-26 02:09:24 +01:00
16 lines
No EOL
412 B
C#
16 lines
No EOL
412 B
C#
using System;
|
|
using MonoGame.Extended;
|
|
|
|
namespace MLEM.Extended.Extensions {
|
|
public static class RandomExtensions {
|
|
|
|
public static int Range(this Random random, Range<int> range) {
|
|
return random.Next(range.Min, range.Max);
|
|
}
|
|
|
|
public static float Range(this Random random, Range<float> range) {
|
|
return random.NextSingle(range.Min, range.Max);
|
|
}
|
|
|
|
}
|
|
} |