Rangers will travel to Championship rivals Dumbarton in the third round of the Scottish Cup.
Raith Rovers face a trip to Linlithgow Rose, Alloa are away to Ayr United, Cowdenbeath go to Forfar and Livingston are on the road to Annan.
Lowland League leaders Edinburgh City take on Highland League pace-setters Brora Rangers.
Junior Cup holders Hurlford United are at home to Stirling Albion, while Queen's Park meet Albion Rovers.
Spartans or East Kilbride will entertain Clyde and Dunfermline, who won the tournament twice in the 1960s, are away to East Stirlingshire.
St Johnstone are the trophy holders and will enter the competition in the next round, along with the rest of the Premiership sides and remaining Championship teams.
|Scottish Cup Third Round|
|East Fife||v||Berwick Rangers|
|Edinburgh City||v||Brora Rangers|
|Hurlford United||v||Stirling Albion|
|Arbroath or Montrose||v||Nairn County|
|Elgin City or Forres Mechanics||v||Boness United|
|East Stirlingshire||v||Dunfermline Athletic|
|Linlithgow Rose||v||Raith Rovers|
|Queen's Park||v||Albion Rovers|
|Ayr United||v||Alloa Athletic|
|Spartans or East Kilbride||v||Clyde|