﻿using System;
using System.Linq;

namespace KornelijePetak.IncidentCS
{
	public static partial class Incident
	{
		internal static Random Rand { get; private set; }

		public static PrimitiveRandomizer Primitive { get; private set; }
		public static TextRandomizer Text { get; private set; }

		static Incident()
		{
			Rand = new Random();
			setupConcreteRandomizers();
		}

		public static int Seed
		{
			set
			{
				Rand = new Random(value);
			}
		}
	}
}

﻿using System;
using System.Linq;

namespace KornelijePetak.IncidentCS
{
	public static partial class Incident
	{
		internal static Random Rand { get; private set; }

		public static IPrimitiveRandomizer Primitive { get; private set; }
		public static ITextRandomizer Text { get; private set; }

		static Incident()
		{
			Rand = new Random();
			setupConcreteRandomizers();
		}

		public static int Seed
		{
			set
			{
				Rand = new Random(value);
			}
		}
	}
}

Convert .Text and .Primitive to interfaces
Convert .Text and .Primitive to interfaces
