u/Massive-Explorer7864

Image 1 —
Image 2 —

I’m working on this project that makes a Notfication pop up at a random time of day. The notification works, but the time isn’t super randomized.

Right now I have it choose a number from 15 to 22, then at every start of an hour I have it check if it’s that number In hours of the day. Now I could change it not to be at the start of every hour, but I feel i’ll eventually know that random time of hour too.

Is there any way to make this truly randomized thats not overly tedious? It seems out of reach of potential even with things like the wait command but figured I’d ask for help anyways. Thanks in advance!

u/Massive-Explorer7864 — 15 days ago