C# Random Number Creation
<p>Ok so I know to generate a random number one would create a method such as this: </p>

<pre><code>private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}
</code></pre>

<p>Now lets say instead of having it take two numbers example:</p>

<pre><code>RandomNumber(4, 25);
</code></pre>

<p>I want it to make the max a value that will be determined, example:</p>

<pre><code>RandomNumber(0, Alist.Count);
</code></pre>

<p>Is there any way to do this? I tried making AList.Count = another int number and putting that in but to no avail. </p>
