logging randomness