title: How to wrap a method (with a parameter list) to be executes on the thread in C#?
body: <p>I have a methode that looks like:</p>
  
  <pre><code>public static int RandomNumber(int min, int max)
  {
    return random.Next(min, max);
  }
  </code></pre>
  
  <p>I want to wrap this method by a delegate that is invoked by a thread, How to do that?</p>
  
  <p>Thanks in advance</p>