直接上代码
public static void main(String[] args){
String[] b = {"好的", "坏的", "傻的"};
Random rand = new Random();
int num = rand.nextInt(3);
System.out.println(b[num]);
}
直接上代码
public static void main(String[] args){
String[] b = {"好的", "坏的", "傻的"};
Random rand = new Random();
int num = rand.nextInt(3);
System.out.println(b[num]);
}