In reply to Sharandiva:
What you are asking for is not a random distribution at all. You need a non-random counter.