分类: C/C++
2012-01-09 22:05:09
/**
* main - 产生随机数
* @num: 随机数个数
* @size: 随机数范围0-size
*
*
*
*
* CONTEXT:
* Don't care.
*
* RETURNS:
* Pointer to the found partition on success, NULL if not found.
*/
/*/
#include
#include
#include
#include
int
main(){
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
long i=0,num=0,size=2147483647;
scanf("%d%d",&num,&size);
if(num<=0)return;
srand((unsigned)time(NULL));
for(;i printf(" %d",rand()%size); }
fclose(stdin); fclose(stdout); } /*/