dimanche 9 février 2020

How do i generate a random number between 1 and k which is not equal to n and m in c++?

if n=2,m=3 and k=5 then answer could be 1 or 4 or 5. given k is always greater than or equal to 3. if k=3 and n=1,m=3 then answer will be 2.




Aucun commentaire:

Enregistrer un commentaire