Vladi243 Posted May 22, 2008 Share Posted May 22, 2008 Hey, I want to make a programme that generates a random word from a list that I will write. Any idea how to do it? Link to comment Share on other sites More sharing options...
Hiyoal Posted May 22, 2008 Share Posted May 22, 2008 #include <file.au3> $File="Path to file" $lines=_FileCountLines($File) $fileopen=FileOpen($File) $linenumber=Random(1,$lines,1) $stringread=FileReadLine($fileopen,$linenumber) FileClose($fileopen) msgbox(0,"Random Word", "Random word from list is: "&$stringread) Hope you like it Hiyoal Link to comment Share on other sites More sharing options...
Vladi243 Posted May 22, 2008 Author Share Posted May 22, 2008 It's working great. Thank you:) Link to comment Share on other sites More sharing options...
Hiyoal Posted May 22, 2008 Share Posted May 22, 2008 No problem Anytime Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now