using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
static void Main(string[] args)
int [] arr=new int[100];
int i;
//初始化数组
for(i=1;i<100;i++)
arr[i] = i;
}
//随机数
Random r = new Random();
for (int j = 99; j >0; j--)
int address = r.Next(1,j);
int tmp = arr[address];
arr[address] = arr[j];
arr[j] = tmp;
//输出
foreach (int k in arr)
Console.Write(k+" ");