nfell2009

Getting The Variable

Dec 17th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.48 KB | None | 0 0
  1.     Dim sKeyword(14) As String 'Settings the array, but the file must be read in (contains 15 variables)
  2.         Dim iUpperBound As Integer = 15 'The MAX that it can be!
  3.         Dim iLowerBound As Integer = 0 'The lowest the random can be
  4.     Dim iTemp As Integer
  5.         iTemp = Int(Rnd() * iUpperBound + iLowerBound) 'Randomly creating a number between the upper and lower
  6.  
  7.     txtKeyword.Text = sKeyword(iTemp) 'This gets the variable according to the random number and puts it into the textbox
Advertisement
Add Comment
Please, Sign In to add comment