Cognizant interview question

Write a program to randomly generate numbers