Is generating real random numbers this easy in C#?

Posted by JL on Stack Overflow See other posts from Stack Overflow or by JL
Published on 2010-03-18T00:40:36Z Indexed on 2010/03/18 0:51 UTC
Read the original article Hit count: 232

Filed under:

I found this code using Google.

private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}

Is this really all there is to generating REAL random numbers in C#? I intend to generate on a small scale between values 1-10.

Thanks

© Stack Overflow or respective owner

Related posts about c#