Joe Nicolas
Lurker
Hello guys. I have a question. I want to make a simple task that execute 5 different actions. For example:
1. Turn on GPS
2. Turn on Wi-Fi
3. Turn on NFC
4. Turn on flashlight
5. Turn on mobile data
But, I need to execute those 5 actions in shuffle. Meaning, every time I run the task, the actions should be executed randomly. The first actions executed could be number 2, 1, 3, 5, then 4. Actions that already performed shouldn't be executed again. Anyone know how to do it? And please give me some example codes how to do it. Thanks before.
1. Turn on GPS
2. Turn on Wi-Fi
3. Turn on NFC
4. Turn on flashlight
5. Turn on mobile data
But, I need to execute those 5 actions in shuffle. Meaning, every time I run the task, the actions should be executed randomly. The first actions executed could be number 2, 1, 3, 5, then 4. Actions that already performed shouldn't be executed again. Anyone know how to do it? And please give me some example codes how to do it. Thanks before.
