📜  数组中的随机值c#代码示例

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

代码示例1
Random random = new Random();
 int value = random.Next(0, array.Length);
 Console.Write(array[value]);