double r;
srand((unsigned int)time(0));
r = rand() / RAND_MAX;
printf("%lf", r);