20 lines
No EOL
297 B
C++
20 lines
No EOL
297 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <random>
|
|
#include <windows.h>
|
|
|
|
using namespace std;
|
|
|
|
class Hasard
|
|
{
|
|
public:
|
|
Hasard() { initialisation(); }
|
|
int recupererValeurAleatoire(int min, int max);
|
|
|
|
private:
|
|
void initialisation();
|
|
typedef std::mt19937 MyRNG;
|
|
uint64_t seed_val;
|
|
MyRNG rng;
|
|
}; |