Infosys Interview Question

Write random number generator code