mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-31 01:35:03 -07:00
20 lines
375 B
C#
20 lines
375 B
C#
using System;
|
|
|
|
namespace LunaLightXMG
|
|
{
|
|
public class Utilities
|
|
{
|
|
private readonly Random random;
|
|
|
|
public Utilities(int seed = 42)
|
|
{
|
|
random = new Random(seed);
|
|
}
|
|
|
|
public float RandomFromRange(float num1, float num2)
|
|
{
|
|
return (float)(num1 + (num2 - num1) * random.NextDouble());
|
|
}
|
|
}
|
|
}
|