using System;
using System.Numerics;
class Sample
{
public static void Main()
{
var rand = System.Security.Cryptography.RandomNumberGenerator.Create();
byte[] bytes = new byte[32];
rand.GetBytes(bytes);
int i = BitConverter.ToInt32(bytes, 0);
Console.WriteLine(i);
}
}
The output:
1208100698
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |