14 lines
236 B
C#
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;
|
|||
|
}
|
|||
|
}
|