mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 12:27:50 +01:00
14 lines
252 B
C++
Executable File
14 lines
252 B
C++
Executable File
#include <random>
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
std::random_device rd;
|
|
std::mt19937 gen(rd());
|
|
std::uniform_real_distribution<> dis(0, 1);
|
|
|
|
for(int i = 0; i < 10; i++) {
|
|
|
|
std::cout << dis(gen) << std::endl;
|
|
}return 0;
|
|
}
|