Allah prohibits gambling but makes life a huge gamble.
A and B marry and decide to have a child hoping that the child will have no congenital defects and will grow to become a good and prosperous citizen, when the chances. of being born with a birth deformity alone are 3 in 100 to which one has to add the chances of perishing in a accident, having and hand amputated for theft, or having his head chopped of for murder, etc.