You are talking about the diversity visa. It only applies to countries that don't send many people already.
H1B has a global cap, so there's a lottery. It's a completely different thing.
Green Cards also have a cap. China (and India in particular) are screwed. If you are from India and take your 1 year old baby to the US, it's likely – if nothing is done – that your baby will never get a green card. Child dependents lose eligibility at 21 years old; the current projections are pointing to much longer times than that.
I think you are talking about the Green Card lottery which doesn't allow certains countries that have had too many immigrants in the past 7 (I think) years. The H1-B lottery doesn't have country limitations.
H1B has a global cap, so there's a lottery. It's a completely different thing.
Green Cards also have a cap. China (and India in particular) are screwed. If you are from India and take your 1 year old baby to the US, it's likely – if nothing is done – that your baby will never get a green card. Child dependents lose eligibility at 21 years old; the current projections are pointing to much longer times than that.