Repeating an action over a random amount of time.

I mostly agree. I want to make code based on elapsed time, not total time, but once the time overflows after 50 days, which would never happen in this specific case (as it would be unplugged before that amount of time), but still good practice to pretend it could none the less. But I don't know how to go about writing code based on elapsed time. I think that would be a big help. Just hearing that I might be able to scratch up some forums on the subject on Google. So I appreciate the nudge in the right direction there. Is there a simple line to reset Time to 0?

The first few loops and the day 49 roll over wasn't a big concern here, at least not yet. I was more so confused why I get one stutter per "randX" and "randY" servo ordinates. I assumed with this code it would only update the random X and Y when it was used. But instead it seems to be running the IF statement of each IF statement every time.

I feel like I'm rambling about pointless solutions here when I already have a working concept with "delay()" so I'm not trying to beat a dead horse here by any means. I just wondered about doing this a better way. Hope this isn't making a few of you face palm for me.