How to

get random bytes

Published: 9. October 2011 | Updated: 9. October 2011
License: Microsoft Public License (MS-PL)
Categories: Framework
Tags: C#
Was this snippet helpful for you? YESYES / NONO
var random = new Random();
            
var bytes = new byte[10];
random.NextBytes(bytes);
Send us feedback about this snippet »



Related Snippets: