import java.util.Scanner;
class CallName
{
public static void main(String[] args)
{
String[] arr = new String[]{"张三","唐三","土豆","再来一次","韩寒"
,"成龙","李连杰","冯军","张新宇","吴尊",
"陈明","徐小辉","宁宁","小兵 ","陈小红"
};
;
while(true){
int i = (int)(Math.random()*100*0.84);//随机获取一个数字
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
System.out.println(arr[i]);
if (num==1)
{
break;
}
}
}
}
|
|