PBU's notes
Jun 27, 2018
Get random number(int) in C#
private int Get_RandomNumber()
{
//연속실행시 시드초기화 안되므로 0.1초 딜레이
System.Threading.Thread.Sleep(100);
Random random = new Random();
return random.Next(0,100);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment