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; } }