#include <iostream>
#include <float.h>
#include <cstdlib>
double randD1(){
return ((double)std::rand()/((double)RAND_MAX));
}
double randDMax(){
return randD1()*DBL_MAX;
}
int main(){
std::cout<<"--0..1-----------"<<std::endl;
for(int i=0; i<10; ++i){
std::cout<<randD1()<<std::endl;
}
std::cout<<"--0..DBL_MAX-----"<<std::endl;
for(int i=0; i<10; ++i){
std::cout<<randDMax()<<std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8ZmxvYXQuaD4KI2luY2x1ZGUgPGNzdGRsaWI+Cgpkb3VibGUgcmFuZEQxKCl7CiAgcmV0dXJuICgoZG91YmxlKXN0ZDo6cmFuZCgpLygoZG91YmxlKVJBTkRfTUFYKSk7Cn0KZG91YmxlIHJhbmRETWF4KCl7CiAgcmV0dXJuIHJhbmREMSgpKkRCTF9NQVg7Cn0KaW50IG1haW4oKXsKICBzdGQ6OmNvdXQ8PCItLTAuLjEtLS0tLS0tLS0tLSI8PHN0ZDo6ZW5kbDsKICBmb3IoaW50IGk9MDsgaTwxMDsgKytpKXsKICAgIHN0ZDo6Y291dDw8cmFuZEQxKCk8PHN0ZDo6ZW5kbDsKICB9CiAgc3RkOjpjb3V0PDwiLS0wLi5EQkxfTUFYLS0tLS0iPDxzdGQ6OmVuZGw7CiAgZm9yKGludCBpPTA7IGk8MTA7ICsraSl7CiAgICBzdGQ6OmNvdXQ8PHJhbmRETWF4KCk8PHN0ZDo6ZW5kbDsKICB9CiAgcmV0dXJuIDA7Cn0=