WisdmLabs interview question

How to generate random no without using inbuilt function