There was a thread on here a couple of months ago where someone said they found an algorithm in the game that does exactly that. It didn't get much attention, but the person seemed very convinced of it.
That sort of thing could work for you or against you - if you want to collect something then it will keep giving it to you...but if you have run out, then it may take a while to refill.
...if there is such an algorithm.
Since seeing that, I ensure that I never let specific items get to zero, but instead treat my last 10 of certain items as if they have depleted - this way I have always got 'seed' items.
I also make sure that basic potion never got too high (never over 10)...or my pack fills up with them.
I have kept a good stash of maxpotion, revives, and max revives at all times this way.
For a few months I have done this, and it may be 'confirmation bias' but with it being over such a long period of time I tend to believe there is something to it.