namespace SantaClausInc.Core;
///
/// Provides a instance.
///
public static class RandomProvider
{
private static Random? _overriddenInstance;
///
/// Gets a default or, if overridden, a custom random instance.
/// Allows to override the default random instance with a specific, seeded one.
///
public static Random Random
{
get => _overriddenInstance ?? Random.Shared;
set => _overriddenInstance = value;
}
}