Vladi243 Posted May 22, 2008 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?
Hiyoal Posted May 22, 2008 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
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