use the clock to generate random number and tweak types