随机生成多维数组

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ConsoleApplication31
{
    class Program
    {
        static void Main(string[] args)
        {
          int[] a=new int[]{3,4,6,5,6,7,8,9,0};
             for (int i = 0; i <= 2; i++)
            {
                for (int e = 1; e <= 1; e++)
                {
                    Random w = new Random();
                   
                    int r = w.Next(0,9);

                    Console.Write(" {" + a[r] + a[r] + a[r] + "}{" + a[r] + a[r] + a[r] + "}");
             
                        Thread.Sleep(800);
          
                } 
              
            } Console.ReadLine();
         
           
                Console.ReadLine();
            }

           
        }
    }

  

posted @ 2015-08-10 23:30  人走茶亦凉  阅读(354)  评论(0编辑  收藏  举报