Queen's Park have been drawn against Rangers in the first round of the Scottish League Cup while last season's Championship winners Dundee have been handed a home tie against Peterhead.
The draw was made on Thursday afternoon by Danny Lennon and Kenny Shiels at the Bet Butler Stadium, home of Dumbarton FC.
Scottish Cup League Cup first-round draw
Queen of the South v Elgin City
Brechin City v Dumbarton
Dunfermline Athletic v Annan Athletic
Queen's Park v Rangers
Morton v Berwick Rangers
Montrose v Falkirk
Raith Rovers v Forfar Athletic
Albion Rovers v Livingston
Hamilton Academical v Arbroath
East Stirlingshire v Ayr United
Dundee v Peterhead
Clyde v Cowdenbeath
Stranraer v East Fife
Airdrieonians v Stenhousemuir
Alloa Athletic v Stirling Albion
Ties are due to be played on Saturday 2 August but Queen's Park v Rangers will be rescheduled due to Glasgow 2014.