Antwort
Ohh sorry hier noch mal der Code;S
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] feld = new int[4];
int i;
int Zufallszahl;
Random zg = new Random();
feld[i] = zg.Next(1, 10);
while (i < 4)
{
feld[i] = Zufallszahl(1, 10);
i = i + 1;
}
Console.WriteLine(Zufallszahl);
}
}
}