static Decisions CreateDecision(int seed, out Random random) { Random internalRandom = new Random(seed); byte[] code = new byte[1000] as byte[]; internalRandom.NextBytes(code); Decisions decisions = new Decisions((byte)internalRandom.Next(255), internalRandom.Next(code.Length)); Enumerable.Range(2, internalRandom.Next(20)) .ToList() .ForEach(i => { //int value decisions.LoadConstantValue(new Value(internalRandom.Next() % 255, "TEST Random")); }); random = internalRandom; return(decisions); }