They were both drawn together in Group D along with Germany, Poland and Georgia, as well as UEFA's newest member Gibraltar, who were drawn to Group C with Spain but were switched to D for political reasons.

Wales have a shot at a play-off place or better in Group B, where they will face Bosnia-Herzegovina, Belgium, Israel, Cyprus and Andorra.

It is a similar story for Northern Ireland, who were drawn in Group F with Greece, Hungary, Romania, Finland and the Faroe Islands in a competitive-looking group.

The top two in each group will qualify for the 24-team final tournament along with hosts France.

The best third-placed team will also qualify, with the eight other third-placed sides playing off for the remaining four spots.