using System;

namespace TOHO;

public class NetRandomWrapper : IRandom
{
    public Random wrapping;

    public NetRandomWrapper(Random instance)
    {
        wrapping = instance;
    }

    public NetRandomWrapper() : this(new Random((int)DateTime.UtcNow.Ticks))
    { }
    
    public NetRandomWrapper(int seed) : this(new Random(seed))
    { }

    public int Next(int minValue, int maxValue) => wrapping.Next(minValue, maxValue);
    public int Next(int maxValue) => wrapping.Next(maxValue);
    public int Next() => wrapping.Next();
}
