우아한 프로그래밍
반응형
로또번호 6가지 랜덤 추출 프로그램
프로그래밍/C# 2017. 4. 21. 22:52

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApp1{ class LottoMachine { private int[] Numbers; public LottoMachine() { Numbers = new int[6]; // 로또 번호 할당 AssignNumbers(); ChangeDuplicateNumber(); CheckNumber(); } private void CheckNumber() { var Map = new Dictionary(); bool IsExist = false; foreach (int Item in Nu..

반응형