#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main() {
srand((unsigned int)time(NULL));
float f = 6.0;
for (int i = 0; i < 25; i++)
printf("%f\n", ( (float)rand() / (float)RAND_MAX ) * f);
return 0;
}
/*
run:
4.709688
0.918692
0.570476
0.603086
1.514855
2.832324
3.122437
2.190587
2.580643
3.527491
4.288983
3.537754
5.810797
4.800825
0.635029
1.671287
2.379007
1.131186
4.691870
1.951129
2.391417
4.052518
3.533689
1.412000
3.457078
*/