Generate GUID with random length
<p>I need to generate random string for my automated tests. I use the following <em>Chinese</em> custom class to do it.</p>

<pre><code>public class UniqueIdGenerator
  {
    static public string GenerateUniqueId(int idLength)    // generates uniqueID for all fields (0-175 characters)
    {
      string uniqueID = "";
      string initialID = Guid.NewGuid().ToString().Remove(35);

      if (idLength &lt;= 35)
      {
        uniqueID = Guid.NewGuid().ToString().Remove(idLength);
      }
      if (idLength &gt; 35 &amp; idLength &lt;= 70)
      {
        uniqueID = initialID + Guid.NewGuid().ToString().Remove(idLength - 35);
      }
      if (idLength &gt; 70 &amp; idLength &lt;= 105)
      {
        uniqueID = initialID + initialID + Guid.NewGuid().ToString().Remove(idLength - 70);
      }
      if (idLength &gt; 105 &amp; idLength &lt;= 140)
      {
        uniqueID = initialID + initialID + initialID + Guid.NewGuid().ToString().Remove(idLength - 105);
      }
      if (idLength &gt; 140 &amp; idLength &lt;= 175)
      {
        uniqueID = initialID + initialID + initialID + initialID + Guid.NewGuid().ToString().Remove(idLength - 140);
      }

      return uniqueID;
    }
</code></pre>

<p>How can I simplify it to use for any natural number?</p>
