1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <complex> #include <cstdio> #include <random> int main() { std::random_device random; std::mt19937 mt(random()); std::uniform_real_distribution<std::complex<double>> uniform(-100, 100); // .... }