LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/DigitalRuby/ThunderAndLightning/RangeOfIntegers.cs

26 lines
435 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
using System;
using UnityEngine;
namespace DigitalRuby.ThunderAndLightning
{
[Serializable]
public struct RangeOfIntegers
{
[Tooltip("Minimum value (inclusive)")]
public int Minimum;
[Tooltip("Maximum value (inclusive)")]
public int Maximum;
public int Random()
{
return UnityEngine.Random.Range(Minimum, Maximum + 1);
}
public int Random(System.Random r)
{
return r.Next(Minimum, Maximum + 1);
}
}
}