C# Random generation
Posted
by
Betamoo
on Stack Overflow
See other posts from Stack Overflow
or by Betamoo
Published on 2010-12-24T19:41:02Z
Indexed on
2010/12/24
19:54 UTC
Read the original article
Hit count: 193
I have just passed this article online:
C# Corner and C# Corner and his article (a software developer with over 13 years of experience) recommended using System.Random
as follows:
private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}
Isn't that would give him the same number every time ??
Edit:
So my question will become: How does Random choose its seed? a constant or current time value?
Thanks
© Stack Overflow or respective owner