Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $File = FileReadToArray("words.txt")
- $RandomWords = $File[Random(0, UBound($File) - 1, 1)]
- send ("$RandomWords")
- sleep (1000)
- send ("{enter}")
- $words_file = "words.txt";
- $word_pool = file($words_file); // an array with one line of words.txt for each Key
- $rand1 = gmp_random_range(1, 50) // for 50 lines at 10pt type
- $rand2 = gmp_random_range(1, 25) // approx 25 words per line
- // Now choose a random $line # for the $key
- $RandomLineofWords = $words_pool[$rand1]; $RandomWordLineArray = explode(' ',$RandomLineofWords); // split line of words into an array based on space separator
- $random_word = $RandomWordLineArray[$rand2]
- //sending is more involved
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement