1 public class Solution 2 { 3 public static void main(String[] args) 4 { 5 int randomValue = (int)(Math.random() * 65 + 26); 6 7 char randomChar = (char)randomValue; 8 9 System.out.println(randomChar);10 }11 }
本文共 302 字,大约阅读时间需要 1 分钟。
1 public class Solution 2 { 3 public static void main(String[] args) 4 { 5 int randomValue = (int)(Math.random() * 65 + 26); 6 7 char randomChar = (char)randomValue; 8 9 System.out.println(randomChar);10 }11 }
转载于:https://www.cnblogs.com/wood-python/p/5765273.html