Group A: St Johnstone, Ayr United, Alloa Athletic, Stirling Albion, Stenhousemuir

Group B: Dundee United, Partick Thistle, Falkirk, Peterhead, Spartans

Group C: Livingston, Hamilton Academical, Cove Rangers, Clyde, Brechin City

Group D: Ross County, Morton, FC Edinburgh, Kelty Hearts, Stranraer

Group E: Dundee, Inverness CT, Airdrieonians, Dumbarton, Bonnyrigg Rose

Group F: Kilmarnock, Raith Rovers, Dunfermline Athletic, Annan Athletic, Albion Rovers

Group G: Motherwell, Queen's Park, Queen of the South, East Fife, Elgin City

Group H: St Mirren, Arbroath, Montrose, Forfar Athletic, Cowdenbeath

The eight group winners and three best runners-up will join European entrants Celtic, Rangers, Aberdeen, Hearts and Hibs in the last 16 of the competition.