반응형

#include "stdafx.h"
#include <stdio.h>
#include <random>
using namespace std;

 



 

int main()
{
 random_device rn;
 mt19937_64 rnd(rn());
 uniform_int_distribution<int> range(1, 45); // 1부터 45사이에서 출력한다.

// 랜덤수 출력 함수


int ran = range(rnd);

printf("%d",ran);


}

반응형

+ Recent posts