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
You don’t have to make your own class that wraps the already existing “Random” class. You can just call:
Also, regarding “REAL random numbers”… it’s random enough for 99.99% of the needs out there in the world.