Mega Code Archive

 
Categories / C# / Development Class
 

Next bytes

using System; using System.Threading; public class MainClass {     public static void Main(){         byte[] bytes1 = new byte[100];         byte[] bytes2 = new byte[100];         Random rnd1 = new Random();         Random rnd2 = new Random();                  rnd1.NextBytes(bytes1);         rnd2.NextBytes(bytes2);                  for (int ctr = bytes1.GetLowerBound(0); ctr <= bytes1.GetUpperBound(0); ctr++) {             Console.Write("{0, 5}", bytes1[ctr]);         }          for (int ctr = bytes2.GetLowerBound(0);ctr <= bytes2.GetUpperBound(0);ctr++) {            Console.Write("{0, 5}", bytes2[ctr]);         }        } }