title: How to generate random numbers
body: <p>i'm new to vb and i have 3 textboxs that i want to set it to a random value when the user click a specific button in in the form so :<br>
  here's the code :</p>
  
  <pre><code>Private Sub cmdjouer_Click(Index As Integer)
    txt1 = Math.Randomize(9)
   txt2 = Math.Randomize(9)
   txt3 = Math.Randomize(9)
  End Sub
  </code></pre>
  
  <p>i get the following error
         <code>expected function or variable</code></p>
  
  <p>i'm sure that the problom is with the Randomize function.</p>
  
  <p>Any idea will be appreciated</p>