Holders St Johnstone have been drawn away to Kelty Hearts or Montrose in the Scottish Cup fourth round.
Rangers, who last won the trophy in 2009, will be fancied to go through when they take on Stirling Albion at Ibrox.
Celtic, who have won the competition a record 40 times, are away to Alloa Athletic.
North Superleague side Banks O’Dee, who beat League One East Fife to reach the fourth round, were rewarded with a home tie against Championship side Raith Rovers.
West of Scotland Premier Division outfit Auchinleck Talbot, conquerors of Championship Hamilton in the last round, will welcome Hearts to Ayrshire in the last 32.
Messi wins record seventh men’s Ballon d’Or
Ronaldo criticises France Football over Messi Ballon d’Or claims
Transfer Centre: Rangnick joins Man Utd latest
Carra on Rangnick’s main Man Utd task
Who will win the Premier League title?
Man Utd appoint Rangnick as interim manager
PL predictions: Palace to send Leeds closer to trouble
Khan taunts Brook in tense ‘Gloves Are Off’
Angry Khan and Brook hauled apart as tensions spike
‘What’s he here for?’ – Keane vs Carragher on Ronaldo: The full transcript
There is an all-Premiership tie between Livingston and Ross County.
St Johnstone will continue their defence of the cup playing during the weekend of January 22.
Scottish Cup fourth-round draw:
Peterhead v East Kilbride
Clydebank v Annan Athletic
Banks O’Dee v Raith Rovers
Motherwell v Inverness or Morton
Kelty Hearts or Montrose v St Johnstone
Livingston v Ross County
Dumbarton v Dundee
Aberdeen v Edinburgh City
Rangers v Stirling Albion
Ayr United v St Mirren
Kilmarnock v Dundee United
Hibernian v Cove Rangers or Queen of the South
Partick Thistle v Airdrieonians
Auchinleck Talbot v Hearts
Alloa Athletic v Celtic
Arbroath v Brechin City or Darvel