#include <iostream>
#include <random>
using namespace std;
int main() {
default_random_engine generator;
uniform_int_distribution<int> distribution(0, 4000000);
double populacao[10];
double aptidao[10];
for (int i = 0; i<10; i++) {
populacao[i] = distribution(generator);
cout << populacao[i] << endl;
aptidao[i] = populacao[i];
}
}
//https://pt.stackoverflow.com/q/229597/101
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8cmFuZG9tPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglkZWZhdWx0X3JhbmRvbV9lbmdpbmUgZ2VuZXJhdG9yOwoJdW5pZm9ybV9pbnRfZGlzdHJpYnV0aW9uPGludD4gZGlzdHJpYnV0aW9uKDAsIDQwMDAwMDApOwogICAgZG91YmxlIHBvcHVsYWNhb1sxMF07CiAgICBkb3VibGUgYXB0aWRhb1sxMF07CiAgICBmb3IgKGludCBpID0gMDsgaTwxMDsgaSsrKSB7CiAgICAgICAgcG9wdWxhY2FvW2ldID0gZGlzdHJpYnV0aW9uKGdlbmVyYXRvcik7CiAgICAgICAgY291dCA8PCBwb3B1bGFjYW9baV0gPDwgZW5kbDsKICAgICAgICBhcHRpZGFvW2ldID0gcG9wdWxhY2FvW2ldOwogICAgfQp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yMjk1OTcvMTAx