package don;
public class pro {
int[] number_fam=new int[5000];
int[] number_work=new int[5000];
int number;
int[] age=new int[5000];
int[] type=new int[5000];
int[] y=new int[5000];
int[] tax=new int[5000];
int[] soc=new int[5000];
int[] pen=new int[5000];
int[] gen=new int[5000];
public static void main(String[] args) {
pro t=new pro();
}
pro(){
int s,n;
number=1000;
for(s=1;s<number+1;s++){
number_fam[s]=(int)(10*Math.random())+1;
n=number_fam[s];
number_work[s]=(int)(n*Math.random());
age[s]=(int)(100*Math.random());
}
/*type(1) 高齢者*/
/*type(2) 母子*/
/*type(3) その他*/
for(s=1;s<number+1;s++){
type[s]=(int)(2*Math.random())+2;
if(age[s]>69)type[s]=1;
}
for(s=1;s<number+1;s++){
y[s]=(int)(2000*Math.random());
tax[s]=(int)(500*Math.random());
soc[s]=(int)(500*Math.random());
gen[s]=(int)(500*Math.random());
pen[s]=(int)(500*Math.random());
}
}
}
最終更新:2015年04月15日 00:01