random
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 int main() 5 { int i,number; 6 double out; 7 srand((unsigned) time(NULL)); 8 for (i=0; i<50; i++) 9 { 10 number = rand() % 101; 11 out=number*1.0; 12 printf("%f ", out); 13 } 14 return 0; 15 }