kakozuzo/Code/swb_base/extensions/RandomExtensions.cs
2024-10-30 19:01:58 +03:00

14 lines
236 B
C#

using System;
namespace SWB.Base;
public static class RandomExtensions
{
public static float NextFloat(
this Random random,
float minValue,
float maxValue )
{
return random.Float() * (maxValue - minValue) + minValue;
}
}