Improve login flow

After user logs in, until now they would be redirected to the edit profile page until their profile is complete. Now they will be redirected there only for the first time and then every 5th login until their profile is complete.
I like randomness of data, so the tests are not depending on the particular data, if that's the case. But in this case you're right, the result depends directly on it. I just didn't know how to cover "every 5th login". Any thoughts?