title: Random Number between 2 variables/values
body: <p>I am working on a project for a intro VB class.  I need to create a random number between 2 values the user enters.  I have an upper limit textbox/variable and a lower limit textbox/variable.  I have tried everything I could find and it produces weird results.  I can't figure out how to get the random numbers generated between 2 values.  For example if the user enters 100 for the lower limit and 500 for the upper limit the random should be in the range of 100-500.  </p>
  
  <p>Please let me know what I am doing wrong??</p>
  
  <pre><code>'Grabs the txbox input and assigns to vars
  intLowNumber = CInt(mskLowerRange.Text)
  intUpperNumber = CInt(mskUpperRange.Text)
  
  intRandomNumber = rand.Next(intUpperNumber) - intLowNumber
  
  'Output to listbox and textbox
  lstOutput.Items.Add(intRandomNumber)
  txtNumber.Text = CStr(intRandomNumber)
  </code></pre>