Need help getting random list item

ThatGuy702

  • Joined: Aug 25, 2011
  • Posts: 3

Thu 8/25/2011 - 22:58

I am trying to create an auto mate that allows me to create yahoo emails faster. I have a predefined list of dummy names i will be pulling text from, what i need is to know how to make it pull a random line of info from the text file instead of the same name every time. I also need to know how exactly to get it into the particular field, (choose username) then after it inputs the random chosen text word, i want it to add a random 3 digit number (001-999) then my predefined password, and also to pull lines for random answers for the security questions.

 

I would like it to also randomize the birth month date and year (1975-1990) and days 1-28.

 

I can create the text files for the info i need to have pulled, im just feeling dumb because i cannot get the program to implement the data into the right forms.

 

Any help would be appreciated.

 

Thanks guys.

#1

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2329

Fri 8/26/2011 - 17:51

You can read the text file as a list, and generate a random number from 0 to the %FileContents.Count-1% and store the value in %RandomNumber%. The %RandomNumber% variable holds the number that you need to specify to get a random item from the names list. So in this case you'd write: %FileContents[RandomNumber]% :) Samantha

#2
Not a member yet? Register

Copyright 2013 - Softomotive Ltd