Hibernian have been handed the opportunity to avenge their William Hill Scottish Cup final derby thrashing after being drawn at home to Hearts in the fourth round of this season's competition.
Hibs' last Scottish Cup tie was the 5-1 humiliation by their Edinburgh rivals at Hampden, but they are a much-improved team this season and sit level on points with Clydesdale Bank Premier League leaders Celtic, seven places above Hearts. The draw also set up a Highland derby with Ross County hosting SPL rivals Inverness.
Rangers and Celtic were both handed home draws. Ally McCoist's team face Irn-Bru Third Division rivals Elgin following their 7-0 third-round win over Alloa at Ibrox, while Celtic face the winners of the third-round replay between Inverurie Locos and Arbroath.
The third all-SPL encounter sees Aberdeen host Motherwell. The Dons knocked out Motherwell in the quarter-finals last season but the Lanarkshire side have fond memories of starting their cup campaign at Pittodrie, Stevie Kirk scoring the only goal in 1991 on their way to lifting the trophy.
Dundee United, winners in 2010, could return to Hampden early on after being drawn away to the winners of the replay between Stranraer and Queen's Park at the national stadium. The SPL's bottom club Dundee face a difficult trip to First Division Livingston.
Kilmarnock have been drawn at home to Second Division leaders Queen of the South, who are unbeaten in the league and face Partick Thistle in the Ramsdens Cup final. St Mirren host the winners of the replay between Brechin and junior side Bonnyrigg Rose while St Johnstone travel to Cowdenbeath.
Highland League side Deveronvale were rewarded for their win over Stirling with a trip to First Division opposition in the shape of Airdrie or Raith Rovers. Turriff United, who sit 11th in the Highland League, have been handed a home draw against Albion Rovers and Morton. Nairn County, one of four Highland League sides in the draw, will host Ayr if they beat Forfar in a replay.
Elsewhere, First Division promotion rivals Partick Thistle and Dunfermline meet at Firhill, Dumbarton host Hamilton, and Stenhousemuir have a home derby with Falkirk to look forward to if they beat Berwick in a replay.
The ties are due to be played on the weekend of December 1-2, earlier than usual in order to accommodate the SPL's mini-winter break in January.