def fuzz_activity(count):
 decay = math.exp((float((- count)) / 60))
 jitter = round((5 * decay))
 return (count + random.randint(0, jitter))

def fuzz_activity ( count ) : decay = math . exp ( ( float ( ( - count ) ) / 60 ) ) jitter = round ( ( 5 * decay ) ) return ( count + random . randint ( 0 , jitter ) )
add some jitter to an activity metric to maintain privacy .