Holders Celtic have been drawn against Hearts at Tynecastle in the fourth round of the William Hill Scottish Cup.
Neil Lennon's side will begin the defence of the trophy they won against Hibernian when they travel to Edinburgh on the weekend of November 30.
Aberdeen, second in the Scottish Premiership, are away to Partick Thistle while League 1 leaders Rangers go to Falkirk.
William Hill Scottish Cup fourth-round draw
Falkirk v Rangers
Albion Rovers v Motherwell
Culter or Berwick Rangers v Dumbarton
Clyde v Stranraer or Auchinleck Talbot
Dundee United v Kilmarnock
Queen of the South v St Mirren
Stenhousemuir or Annan Athletic v Fraserburgh
Brechin City v Forfar Athletic
Alloa Athletic v Stirling Albion
Ross County v Hibernian
Dundee v Raith Rovers
St Johnstone v Livingston
Partick Thistle v Aberdeen
Heart of Midlothian v Celtic
Ayr United v Dunfermline Athletic
Inverness Caledonian Thistle v Morton
Ties to be played on the weekend of November 30