Originally posted by kai_top at 2005-8-24 02:46 PM:
public function random(k,n)
{n=int((k-1)rand()+100);
return(n);
}
for(i=1;i<=500;i++)
{
m=random(100,n);
}
以上表示生成500个100-200以内的随机整数
Originally posted by kai_top at 2005-8-24 02:46 PM:
public function random(k,n)
{n=int((k-1)rand()+100);
return(n);
}
for(i=1;i<=500;i++)
{
m=random(100,n);
}
以上表示生成500个100-200以内的随机整数