#include "stdafx.h"
#include "stdlib.h"
#include "time.h"
int main(int argc, char* argv[])
{
int i;
double f,g;
srand((unsigned)time(NULL));
for(i=0;i<100;i++)
{
f=(double)(rand()%11); //不包括1就 %10就行了
g=f/10;
printf("%f/n",g);
}
return 0;
}