#include <iostream>
#include <random>
#include <ctime>
using namespace std;
int main() {
// hardware access is disabled at ideone.com, will seed with time instead
// random_device rd; // access hardware RNG
// default_random_engine e(rd()); // seed the software PRNG
default_random_engine e(time(NULL)); // seed the software PRNG
uniform_real_distribution<> d(-1, 1); // range
for(int n = 0; n<100; ++n)
cout << d(e) << ' ';
cout << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8cmFuZG9tPgojaW5jbHVkZSA8Y3RpbWU+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkgewovLyBoYXJkd2FyZSBhY2Nlc3MgaXMgZGlzYWJsZWQgYXQgaWRlb25lLmNvbSwgd2lsbCBzZWVkIHdpdGggdGltZSBpbnN0ZWFkCi8vICAgIHJhbmRvbV9kZXZpY2UgcmQ7IC8vIGFjY2VzcyBoYXJkd2FyZSBSTkcKLy8gICAgZGVmYXVsdF9yYW5kb21fZW5naW5lIGUocmQoKSk7IC8vIHNlZWQgdGhlIHNvZnR3YXJlIFBSTkcKICAgIGRlZmF1bHRfcmFuZG9tX2VuZ2luZSBlKHRpbWUoTlVMTCkpOyAvLyBzZWVkIHRoZSBzb2Z0d2FyZSBQUk5HCiAgICB1bmlmb3JtX3JlYWxfZGlzdHJpYnV0aW9uPD4gZCgtMSwgMSk7IC8vIHJhbmdlCiAgICBmb3IoaW50IG4gPSAwOyBuPDEwMDsgKytuKQogICAgICAgIGNvdXQgPDwgZChlKSA8PCAnICc7CiAgICBjb3V0IDw8ICdcbic7Cn0K