Home > Enterprise >  How do I display a given random array element every two seconds until it is stopped?
How do I display a given random array element every two seconds until it is stopped?

Time:09-26

I am trying to make a program that randomly displays one of four defined emojis given in an array when the button is clicked and switches every two seconds continues to do so until the stop button is clicked. Note that I have not finished the stop function yet as I cannot work out why my randomEmoji function is not displaying anything. Thanks in advance :).

  • Related