CSharp · Console
using System;
public class Program
{
private static int nthrand(int seed, int n) {
var r = new Random(seed);
for (int i=0; i<n; i++) {
r.Next();
}
return r.Next();
}
private static void dump(int Seed) {
int n = 12; // zero indexed, 13th output
Console.WriteLine($"nthrand({Seed}, {n}) = {nthrand(Seed, n)}");
}
public static void Main()
{
dump(161844078);
dump(619861032);
}
}