📜  两个字符串之间的 java 随机数 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:15.688000             🧑  作者: Mango

代码示例2
String[] s = {"your", "array", "of", "strings"};

Random ran = new Random();
String s_ran = s[ran.nextInt(s.length)];