Random numbers in table : <p>I'm trying to make 2 tables where one will store numbers and second will display this numbers twice also user decides how many numbers will be generated.</p>

<pre><code>Example:
Table1 -&gt; 67 9 4 -78 -29
Table2 -&gt; 67 67 9 9 4 4 -78 -78 -29 -29
</code></pre>

<p>Current code:</p>

<pre><code>#region TablesTest

    Console.Write("Enter n: ");
    int n = Convert.ToInt32(Console.ReadLine());

    int[] table1 = new int[n];
    int[] table2 = new int[n];

    Random rnd = new Random();

    for (int i = 0; i &lt; n; i++)
    {
        table1[i] = rnd.Next(-100, 100);

        foreach (int x in table1)
        {

            table2[i] = table1[i] + table1[i];
            Console.Write(table2[i]);
        }

    }

    Console.ReadKey();
#endregion
</code></pre>
