Ramsdens Cup holders Queen of the South will visit Airdrieonians in the second round of this season's tournament.
Dunfermline host Fife rivals Raith Rovers and Rangers welcome Berwick Rangers to Ibrox.
Dundee entertain Forfar Athletic, Falkirk visit Ayr United and Stranraer meet Annan Athletic.
Peterhead take on Stenhousemuir and Highland League outfit Formartine United are at home to Elgin City.
Ramsdens Cup second round draw:
Formartine United v Elgin City
Dundee v Forfar Athletic
Peterhead v Stenhousemuir
Dunfermline v Raith Rovers
Stranraer v Annan Athletic
Ayr United v Falkirk
Rangers v Berwick Rangers
Airdrieonians v Queen of the South