Visa Inc. interview question

Write a program for Random number.