testsAndMisc-archive/CPP/miscelanious/yousuckatcards/Bernouli/test.cpp

15 lines
242 B
C++
Raw Normal View History

#include <iostream>
2026-02-20 00:37:32 +01:00
#include <random>
int main() {
2026-02-20 00:37:32 +01:00
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_real_distribution<> dis(0, 1);
2026-02-20 00:37:32 +01:00
for (int i = 0; i < 10; i++) {
2026-02-20 00:37:32 +01:00
std::cout << dis(gen) << std::endl;
}
return 0;
}