본문 바로가기

.NET/C#

c# 랜덤하게 숫자 생성

Random rnd = new Random();
int month = rnd.Next(1, 13);