adds random to logging