Need to have a function that randomly selects between two or more strings I have which then is shown on a label in the app. Have tried using an array however don't find this helpful as I then want to have the user click on a button depending on the string that is randomly selected. I.e:
random strings to use "tap?" and "dont tap?"
random string selected: "tap" user taps button "tap button" then repeats by selecting random string. random string selected: "dont tap" User taps "dont tap"
this then repeats randomly
Aucun commentaire:
Enregistrer un commentaire