namespace WingsEmu.Game;
public class StaticRandomGenerator
{
public static IRandomGenerator Instance { get; private set; }
public static void Initialize(IRandomGenerator generator)
{
Instance = generator;
}
}
public interface IRandomGenerator
{
///
/// Generates a random number between min and max excluded
///
///
///
///
int RandomNumber(int min, int max);
///
/// Generates a random number between 0 and max excluded
///
///
///
int RandomNumber(int max);
///
/// Generates a random number between 0 and 100
///
///
int RandomNumber();
}