日期:2014-05-18 浏览次数:20771 次
int[,] array = new int[10, 10] { ... } Random r = new Random(); int x = r.Next(0, array.GetLength(0)); int y = r.Next(0, array.GetLength(1)); int z = array[x, y];