rand() giving the same value in while loop

Printable View