-
The Rnd function will return a random number between 0 and 1. If you want an integer between say 1 and 10 inclusive then you would do this:
Code:
RandomNum = Int(Rnd * 10) + 1
So for your list, it depends on how you are storing your list. If you have it in an array then just use a random array index, like this:
Code:
RandomWord = WordsArray(RandomIndex)
-
Oh yes and at the start of your program you should add this line:
To seed the random function with a starting value, taken form the system timer.
-
randomize timer
wordnumber = int(rnd * x)+1
if wordnumber = ____ then word = ____
If u understand this it should work.