EN
C# / .NET - generate array of random bytes
4
points
Random.NextBytes
method example
Random random = new Random();
byte[] bytes = new byte[10];
random.NextBytes(bytes);
foreach(byte entry in bytes)
Console.WriteLine(entry);
Output:
100
206
3
229
45
247
73
187
44
237