I've method which put the numbers 1 to 9 in a random order. Each number appears only once. The method should return an integer table.
This is my code which facing the wall, I ran out of ideas with this code. I know that this code is 100% wrong.
class Program
{
static void Main(string[] args)
{
int luvut = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
Console.WriteLine(luvut);
Console.ReadKey();
}
private static int Kuuluuko(int luvut)
{
for (int i = 0; i < luvut.Length; i++)
{
return;
}
}
}
}