一个简单的C语言随机数生成器
int random(int start,int end){
	int h;
	float k;
	h=(int)malloc(sizeof(int));
	h=h%10000;
	k=((float)h)/10000;
	k=start+(end-start)*k;
	return k;
}
/** end of http://code.activestate.com/recipes/578134/ }}} */
一个简单的C语言随机数生成器
int random(int start,int end){
	int h;
	float k;
	h=(int)malloc(sizeof(int));
	h=h%10000;
	k=((float)h)/10000;
	k=start+(end-start)*k;
	return k;
}
/** end of http://code.activestate.com/recipes/578134/ }}} */