rnd

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
	}
	
	public static int[] RebuildArray(uint seed, int modulus, int length)
	{
		var array = new int[length];
		SRandom(seed);
		for (var i=0; i < array.Length; i++)
		{
			array[i] = Random() % modulus;
		}
		
		return array;
	}
	
	private static void SRandom(uint seed)
	{
		// xz
	}

	private static Random RandomInstanse = new Random();
	
	private static /*maybe*/ int Random()
	{
		return RandomInstanse.Next();
	}
}
;