mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-30 22:55:03 -07:00
Can toggle game music now.
This commit is contained in:
+2
-2
@@ -4,14 +4,14 @@ namespace LunaLightXMG
|
||||
{
|
||||
public class Utilities
|
||||
{
|
||||
private Random random;
|
||||
private readonly Random random;
|
||||
|
||||
public Utilities(int seed = 42)
|
||||
{
|
||||
random = new Random(seed);
|
||||
}
|
||||
|
||||
public float ChooseFromRange(float num1, float num2)
|
||||
public float RandomFromRange(float num1, float num2)
|
||||
{
|
||||
return (float)(num1 + (num2 - num1) * random.NextDouble());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user