Hello Mollishree Soor ,
Good question. When we do rand10(), the numbers between 1 to 10 have the same probability of appearing. (1/10). If we go with the approach of getting Rand7() once then we have already broken the rule for Rand10() since numbers (1–7) will have higher probability of occurrence than 0.1. No matter what operations you perform afterwards is futile.