Holders Celtic will host Kilmarnock in the fourth round of the Scottish Cup, while Rangers welcome Highland League side Fraserburgh to Ibrox.
There will be a Dundee derby at Dens Park, St Johnstone take on Motherwell in Perth and Aberdeen make the short trip to Elgin City.
Hibernian will be at home against Clydebank, currently unbeaten in the West of Scotland Football League, and Hearts visit Highland League leaders Brechin City.
Championship pace-setters Falkirk won 3-1 at East Kilbride on Monday evening and will meet league rivals Raith Rovers next.
Musselburgh Athletic of the East of Scotland Premier Division go to Hamilton Accies and Lowland League representatives Broxburn Athletic have a home tie with Ayr United.
The fourth-round matches will be played on the weekend of 18-19 January.