Integer sequence, in which I have to find the most repeated one. Incase of many repeated numbers, find the lowest value
<p>Theres an integer sequence in which I have to find the most repeated value. Incase of many repeated values, find the lowest value of all the repeated values.</p>

<p>Example: Incase of {-10,17,13,17,-10,21} the result is -10</p>

<p>How far I've got so far:</p>

<pre><code>        static void YL2()
    {
        Random random = new Random();

        int mitu = 10, minv = 0, maxv = 20;
        int[] mas1 = new int[mitu];
        int i;
        int lowest;


        for (i = 0; i &lt; mitu; i++) mas1[i] = random.Next(minv, maxv);
        for (i = 0; i &lt; mitu; i++)
            Console.Write("{0,4}", mas1[i]);
        Console.Write("\n\n");

        int count = 0;
        List&lt;int&gt; checkedNumbers = new List&lt;int&gt;();


        foreach (int t in mas1)
        {
            if (!checkedNumbers.Contains(t))
            {
                foreach (int m in mas1)
                {
                    if (m == t)
                    {
                        count++;
                    }
                }
                Console.WriteLine("Number {0} is repeated {1} times", t, count);
                count = 0;
                checkedNumbers.Add(t);
            }
        }

        for (lowest = mas1[0], i = 1; i &lt; mitu; i++)
        {
            if (mas1[i] &lt; lowest) lowest = mas1[i];
        }
        Console.Write("Lowest value is {0}\n\n", lowest);

    }
</code></pre>
