Re: [Sikuli-driver] [Question #237412]: Read random line from text file

2013-10-16 Thread Unuldinei
Question #237412 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/237412 Status: Answered => Solved Unuldinei confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers

Re: [Sikuli-driver] [Question #237412]: Read random line from text file

2013-10-16 Thread RaiMan
Question #237412 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/237412 Status: Open => Answered RaiMan proposed the following answer: import random male = open("male.txt").readlines() female = open("male.txt").readlines() results = open("male.txt", "w") howmany = len(male

[Sikuli-driver] [Question #237412]: Read random line from text file

2013-10-15 Thread Unuldinei
New question #237412 on Sikuli: https://answers.launchpad.net/sikuli/+question/237412 I have three text files: male.txt - containing male names / names separator = new line female.txt - containing female names / names separator = new line results.txt - results file I need: loop: male = "random li