Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where can I download a timer that goes off randomly within a set interval?”

0
Posted

Where can I download a timer that goes off randomly within a set interval?”

0

I couldn’t find any program to do exactly what you wanted so I decided to write it 🙂 This is a very simple program and can be improved a lot. Anyway, it works just like you wanted. Here is the program: ######################################### ## ## Please make sure you run Powershell in Administrator mode ## then give the command: ## ## Set-ExecutionPolicy UnRestricted ## ## you can now run the script whenever you want ## remember to adjust min_secs and max_secs value to your needs # This is the minimum number of seconds allowed $min_secs = 5; # This is the maximum number of seconds allowed $max_secs = 20; # Get a random number between the minimum and maximum value $seconds = get-random -min $min_secs -max ($max_secs+1); # Pause for the random number of seconds start-sleep $seconds; # Ring a bell write-host (“`a”*5); Copy the lines above to your clipboard. Then paste them into Notepad. Click save and make sure you change the “Save As Type” to “All Files” and then give the file a name

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123