Say I have certain events that happen one after another, and I want to be able to select a subset such as every 50th event and set it aside. But say I have no way of exactly knowing when the 50th event has occurred.
Would it be similar if i was to take a random number between 1..50 and if it equals 50, then set it aside?
I need to solve something similar and I am not sure how to select every 50th element that comes in when I dont have any information that I can use. Of course I could store a value in a database such as a count but I would rather not.
Also every event that comes in has no relation to the next or previous.