min((1103515245*(uid+activity)+12345) % (1<<10),(1103515245*posts+12345) % (1<<10), (1103515245*merit+12345) % (1<<10))