Algorithmic analysis:Random Number
<p>Am building  Software for a clinic using VS2010 Pro.<br>
Among the requirements are:  </p>

<ol>
<li>It should generate patient Number based on the date of enrollment.  </li>
<li><p>Middle two digits for Male patient is 11.  </p></li>
<li><p>Middle two digits for Female patient is 22</p></li>
<li><p>The Final two digits range from 0 to 99.<br>
eg for Male patient enrolled today:2012-03-02.
My Question is:
What is the Maximum of patients that can be enrolled per day?  </p>

<p>here is part of my code:  </p>

<pre><code>public string GetCurrentDate()
{
    DateTime currentDate = DateTime.Now;
    string todaydate = currentDate.ToShortDateString().ToString();
    return todaydate;
}


public int RadomNum()
{
    return _random.Next(00, 99);
}


public string GeneratePatientNumber(Gender gender)
{
    return GetCurrentDate() + "-" + (int)gender + "-" + RadomNum();
}
</code></pre></li>
</ol>
