Mendellian inheritance and probability