Advertisement
Guest User

.vbs script NEW

a guest
Jun 23rd, 2019
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Randomize()
  2. blnStartOneWord = True
  3. blnForceWordNumLetters = True
  4.  
  5. Function MakeWord(intNumLetters)
  6.    
  7.     If blnStartOneWord = True Then
  8.  
  9.         If blnForceWordNumLetters = True Then
  10.  
  11.             For x = 1 To intNumLetters
  12.                 intCharNum = Int((Rnd * 26) + 1)
  13.                 strWord = strWord & chr(123 - intCharNum)
  14.             Next
  15.            
  16.         End If
  17.  
  18.     End If
  19.  
  20.     intChoiceSayInfo = Int((Rnd * 3) - 1)
  21.  
  22.     If intChoiceSayInfo = -1 Then
  23.         MsgBox "no"
  24.         'Exit Function     
  25.         MakeWord(intNumLetters + 1)
  26.     ElseIf intChoiceSayInfo = 0 Then
  27.         MsgBox "maybe"
  28.         'Exit Function
  29.         MakeWord(intNumLetters + 1)
  30.     ElseIf intChoiceSayInfo = 1 Then
  31.         MsgBox "yes " & strWord
  32.     End If
  33.  
  34. End Function
  35.  
  36. MakeWord(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement