Using VB I can create and access a random "cell" in an array like so
Dim array(5) as array
Dim r as new random
r.next(0,5)
array(r) will then access a random "cell" based upon r's value.
Is there a way to say something like button(r) to directly randomize which button is chosen instead of having to use a random and If's like so?
r.next(0,5)
If r = 1 then
button1 ...
elseif r = 2
button 2 ...
end if