System to generate random number