###编码实现随机生成一个大写英文字母
import java.util.Random;
public class Test {
public static void main(String[] args) {
//调用Random类
Random ran = new Random();
int i = ran.nextInt(26);
i = i+65;
//类型转换
char c = (char)i;
System.out.println("ASCII码为:"+i);
System.out.println("大写字母为:"+c);
}
}