Just because I’m a tiresome trivia drone, I will inform everyone that, according to Canon Law, the office of Pope is open only to a baptized Catholic man. Thus, they could choose a random lay man, but not a non-Catholic or a woman.
I’m sure the rules will be changed to allow a muslim to hold the job...