The draw for the third round of the William Hill Scottish Cup was made at the Usher Hall in Edinburgh on Monday afternoon.
The winners of the 16 ties will progress to round four at the end of November, where they will be joined by the 16 highest ranked clubs from last season.
William Hill Scottish Cup third-round draw
East Fife v Berwick Rangers
Forfar Athletic v Cowdenbeath
Edinburgh City v Brora Rangers
Stenhousemuir v Brechin City
Hurlford United v Stirling Albion
Arbroath or Montrose v Nairn County
Elgin City or Forres Mechanics v Bo’ness United
Ayr United v Alloa Athletic
Spartans or East Kilbride v Clyde
Peterhead v Stranraer
Dumbarton v Rangers
Queen’s Park v Albion Rovers
Morton v Airdrieonians
Annan Athletic v Livingston
East Stirlingshire v Dunfermline
Linlithgow Rose v Raith Rovers
Ties to be played November 1