If you have all the words in an array (like arrWords()), you could use something like this:
As I see it you don't need a Select Case (if you have the words in an array). Also I wouldn't use Randomize in that Function, us it only once for the whole application!Code:Public Function fctRandomWord1() fctRandomWord1 = arrWords(Int(Rnd * 2000)) End Function




Reply With Quote