Been struggling on creating an array, that will randomly select 1 of 6 words, and every time you click the button to activate this, it will randomly choose another word, but never the same one just after that one has shown, for example:
is cat comes up cat wont come up again until a different word comes up such as dog then cat can reappear, when the button is clicked again.
this is what i have so far
is cat comes up cat wont come up again until a different word comes up such as dog then cat can reappear, when the button is clicked again.
this is what i have so far
Code:
Dim Word(5)
Dim n
Sub window_onLoad()
Randomize
Word(0) = "Damfselfy"
Word(1) = "Frog"
Word(2) = "Hedgehog"
Word(3) = "Newt"
Word(4) = "Slowworm"
Word(5) = "Thrush"
end sub
Sub btnQ_OnClick()
n = Word(0 to 5)
txt1.innerText = "What is a " & Word(n) & "?"
end sub