using System;
using System.Security.Cryptography;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
using (RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider())
{
byte[] arr = new byte[4];
for (int i = 0; i < 10; i++)
{
rng.GetBytes(arr);
int n = BitConverter.ToInt32(arr, 0);
Console.WriteLine(n);
}
}
}
}
}
/*
run:
1382154183
1385868911
-841902702
-68443939
-1697870295
-824491233
-767157963
2003038576
-1294213352
-1576860415
*/