static void Main(string[] args)
{
int[] myNum = new int[
myNum = GetRand(
Array
foreach (int item in myNum)
{
Console
}
Console
return;
}
public static int[] GetRand(int minValue
{
maxValue = maxValue
int[] arrInt = new int[maxValue];
for (int i =
{
arrInt[i] = i + minValue;
}
int[] arrResult = new int[count];
int n = maxValue;
Random rand = new Random();
for (int i =
{
int index = rand
arrResult[i] = arrInt[index];
arrInt[index] = arrInt[
}
return arrResult;
}
From:http://tw.wingwit.com/Article/program/net/201311/12886.html