Koustubh-Generating the unique random number properly