Exemple #1
0
        public void initRandom()
        {
            Random r = new Random();

            nodes = Enumerable.Range(0, 90)
                    .Select(i => SomeNode.initRandom(r)).ToArray();
            myObjectMemeber = "Huge val";
        }
Exemple #2
0
        public static SomeNode initRandom(Random r)
        {
            SomeNode res = new SomeNode();

            res.data = new byte[1024 * 1024];
            r.NextBytes(res.data);
            return(res);
        }