#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main ()
{
float min = -270.33;
float max = -47.50;
float res;
srand(time(NULL)); /* inicializando a semente do gerador aleatorio*/
res = min + rand() * (max - min) / RAND_MAX;
printf("Resultado: %f\n", res );
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHRpbWUuaD4gIAoKaW50IG1haW4gKCkKewogIGZsb2F0IG1pbiA9IC0yNzAuMzM7CiAgZmxvYXQgbWF4ID0gIC00Ny41MDsKICBmbG9hdCByZXM7CgogIHNyYW5kKHRpbWUoTlVMTCkpOyAvKiBpbmljaWFsaXphbmRvIGEgc2VtZW50ZSBkbyBnZXJhZG9yIGFsZWF0b3JpbyovCiAgCiAgcmVzID0gbWluICsgcmFuZCgpICogKG1heCAtIG1pbikgLyBSQU5EX01BWDsKCiAgcHJpbnRmKCJSZXN1bHRhZG86ICVmXG4iLCByZXMgKTsKCiAgcmV0dXJuIDA7Cn0=