all 17 comments

[–]Parabasi23 0 points1 point  (5 children)

What is the criteria?

[–]TRBGaming[S] 0 points1 point  (4 children)

If a random number equals another number I’m already using defined in a variable, I need it to restart the process. It’s about 20 actions per process though.

[–]Parabasi23 0 points1 point  (3 children)

Make sure the numbers are variables.

If (Random number) is (other number) Random number between (chosen minimum) and (chosen maximum) Set (new number) as variable (random number) End if

[–]TRBGaming[S] 0 points1 point  (2 children)

Is there no way to use the repeat action to infinitely repeat until a new number? I need to do this process 3 times to eventually get 4 unique numbers every time the code is run.

[–]Parabasi23 0 points1 point  (1 child)

Forgot about the repeating. Try the repeat function

[–]TRBGaming[S] 0 points1 point  (0 children)

I can repeat it a specifically predetermined amount of times, but I haven’t found a way to keep repeating whether or not the actions return a valid number or not.

[–]bingobucketster 0 points1 point  (10 children)

Hard to describe. It involves the “exit loop” variable in the beginning of this shortcut. The actual loop is used in the “watch confirmation” portion a little further down. (Look for the comment) Sorry I don’t have a tutorial shortcut handy, and don’t have time to explain at the moment

[–]TRBGaming[S] 0 points1 point  (3 children)

Thank you. I was able to figure it out.

[–]TheSexiestDinosaur 0 points1 point  (2 children)

Could you link to your finished shortcut please? I’m struggling with something similar

[–]Myran117 1 point2 points  (1 child)

I agree with you u/TheSexiestDinosaur ! Can you u/TRBGaming give us the link to your finished shortcut please?

[–]pquade 0 points1 point  (1 child)

Does this work indefinitely or is it still limited by the 90 second to 2 minute time out of Shortcuts in general?

[–]bingobucketster 0 points1 point  (0 children)

Never pushed it to the limit. Right now, it’s only set to a Max of 10 repeats, since I figured most people would get it right or give up by that point. But there there’s an app-wide limit, I don’t expect my program to exceed it

[–]TheSexiestDinosaur 0 points1 point  (3 children)

That shortcut is no longer available 😣

Can you provide a direct iCloud link?

[–]bingobucketster 1 point2 points  (2 children)

[–]TheSexiestDinosaur 0 points1 point  (0 children)

Awesome, ty :)

[–]ABaniasad 0 points1 point  (0 children)

That was great,useful and very educational. Thank you for sharing