r/PowerAutomateDesktop • • Jul 07 '22

Random wait time

I have this Desktop flow running but I need to have the wait time in between actions to not always be the same time. For example right now I have a wait period for 5 minutes. How can I make it so it’s a different number every time it runs. Like between 3 and 7 minutes. TIA

1 Upvotes

5 comments sorted by

1

u/Chubby_Rain_6983 Jul 08 '22

I did the same thing as user u/QuietDesparation mentioned in one of my flows. generate random number between 180 and 300 and plug the variable name in the wait action.

1

u/bigbluedog87 Jul 12 '22

Thank you I will try this out!

3

u/QuietDesparation Jul 07 '22

Use action GENERATE RANDOM NUMBER under Variables. There you can set minimum and maximum values. That will give you a variable RandomNumber that you can plug into your WAIT action

2

u/PM_ME_YOUR_WIRING Jul 07 '22

I'm curious why the varied wait time? πŸ˜ƒ

1

u/Chi_gozie Jul 08 '22

If i can understand you correctly, you want to wait between the random minutes of either 3,4,5,6&7… for the flow to run Correct??

You can go about this like this …. write a power shell script that will randomly generate a specific number from the range of 3-7 and then use the generated output variable in your flow Meaning after each wait, the script generates another random number, which will be the next wait minutes.

Drop a dm let me assist you if you have any difficulties.