Rangers meet Albion Rovers in Ramsdens Cup first round
Queen of the South begin their defence of the Ramsdens Cup against Spartans or Threave Rovers.
Rangers are away to Albion Rovers, while Dunfermline visit Fife rivals Cowdenbeath and Clyde host Falkirk.
First Division newcomers Alloa Athletic and Dundee meet at Recreation Park and Morton travel to Annan Athletic.
Highland League side Formartine United take on East Stirlingshire, Raith Rovers meet Stirling Albion and Berwick Rangers entertain Livingston.
All ties will be played on 27 July.
Ramsdens Cup first round draw:
Formartine United v East Stirlingshire
Stenhousemuir v Arbroath
Forfar Athletic v East Fife
Elgin City v Montrose
Cowdenbeath v Dunfermline Athletic
Peterhead v Brechin City
Alloa Athletic v Dundee
Raith Rovers v Stirling Albion
Annan Athletic v Morton
Berwick Rangers v Livingston
Queen's Park v Ayr United
Queen of the South v Spartans or Threave Rovers
Albion Rovers v Rangers
Clyde v Falkirk
Stranraer v Dumbarton
Airdrieonians v Hamilton Academical