```
//Ask user how many woodchucks to simulate

        while(!validNumber)
        {
            Write("How many woodchucks would you like to simulate? (1 - 100) ");
            int.TryParse(ReadLine(), out woodchuckSim);
            if((woodchuckSim <= 0) || (woodchuckSim > 100))
            {
                WriteLine("\nPlease enter a correct amount of woodchucks to simulate: ");
            }
            if((woodchuckSim >= 1) && (woodchuckSim <= 100))
            {
                validNumber = true;
            }
        }

        //Ask user how many days to simulate

        while(!validDays)
        {
            Write("\nHow many days would you like to simulate? (1 - 10) ");
            int.TryParse(ReadLine(), out numOfDays);
            if((numOfDays <= 0) || (numOfDays > 10))
            {
                WriteLine("Please enter a positive whole number between 1 and 10: ");
            }
            if((numOfDays >= 1) && (numOfDays <= 10))
            {
                validDays = true;
            }
        }

        //Using random class populate each cell between 1 and 50 that represents # of pieces of wood chucked by specific woodchuck on that specific day

        int[,] sim = new int[woodchuckSim, numOfDays];

        WriteLine($"{woodchuckSim} {numOfDays}");
        for (int i = 0; i < sim.Length; i++)
        {
            for (int j = 0; j < sim.Length; j++)
            {
                sim[i, j] = ran1.Next(1, 50);
                WriteLine(sim[i, j]);
            }
        }

        WriteLine("Press any key to continue...");
        ReadLine();

```

So this is my code so far, and I keep getting a "Index was outside the bounds of the array" error and I'm basically trying to ask the user to input the numbers of woodchucks and the number of days then populate the 2d array with random numbers. Any help will be really appreciated, and btw I am a beginner in programming. Thanks!