Pergunta de entrevista da empresa Tata Consultancy Services

Algorithm for randomly choosing a value in C language