Hi all, new here so take it easy on me.
I'm designing a script designed to trigger a random drill within a 30 day time frame. I don't yet know how many times the check will occur, so for now we'll say that it will run X times within the 30 day period and it should only activate the drill once within the 30 day timeframe. If it doesn't occur within the 30 day timeframe then it will trigger at the end of the 30 days.
Each time the script runs it will evaluate some conditions, then decide whether or not to activate by generating a random number between 0 and 32767. A percentage of these numbers is allocated to "yes, activate" and the larger percentage is allocated to "No, don't activate." I need to figure out the percentage that will provide an even 'chance-to-trigger' out of the X times it is run within the 30 day period.
The only thing I'm coming up with is 1/X, but that seems far too simple.