I'm making a Tic-Tac-Toe game but I can't figure out how to let CPU to ramdomly choose a button to check its text to X.

Is this where control array comes? How would you code this?

EDIT:

I tried using blahblah or blahblah or ... ...
but it didn't work.