• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Display different unique number

Joe Nicolas

Lurker
Hi there, this is my first post. I hope got a helpful answer here.
So, I want to do a repeated task to show random number with a specific range. And the displayed number can't be the same (must be unique).
For example, I want to display number between 1 to 5 to the screen with Flash Alert. The first displayed number could be 4, then 1, 3, 5, then finally 2. The displayed number cannot be the same number that have been displayed before. I've tried to use Variable Randomize with For, but Variable Randomize not showing unique number.
How can I do that in Tasker? Is it possible? Please help me.
 
How about ...

Create an array with the numbers in sequence.
Pick an entry in the array and if it is "x" pick another entry.
When you pick a number set its array entry to "x".

... Thom
 
Back
Top Bottom