```
using System;
using UnityEngine;
using Random = UnityEngine.Random;
[Serializable]
public struct MinMaxFloat
{
public float Min;
public float Max;
public float Range
{
get { return Mathf.Abs(Max - Min); }
}
public MinMaxFloat(float min, float max)
{
this.Min = min;
this.Max = max;
}
public float Lerp(float t)
{
return Mathf.Lerp(Min, Max, t);
}
public float Clamp(float t)
{
return Mathf.Clamp(Min, Max, t);
}
public float GetRandom()
{
return Random.Range(Min, Max);
}
}
```