How to

get random number

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();
            
int randomInteger = random.Next();
double randomDouble = random.NextDouble();
Send us feedback about this snippet »



Related Snippets: