title: random number generator to be displayed on a text box
body: <p>I'm kind of stuck on a thing I'm working on.. I have a windows form application with different buttons, and each button is supposed to do different thing. Now my problem:</p>
  
  <p>On one button, when I press it, it should generate random numbers (0-1000 for example) and display the number in a textbox, which I also have on the program. I tried to do this code on the button:</p>
  
  <pre><code>private void button5_Click(object sender, EventArgs e)
  {
      Random slumpGenerator = new Random(); int tal; 
      tal = slumpGenerator.Next(); 
  }
  </code></pre>
  
  <p>But unfortunately, no number is displayed on the text box. And i think it could be because I haven't referred that the numbers should display on my textbox, any ideas?</p>