Heart of Midlothian and Hibernian will meet in the fifth round of the Scottish Cup next month after being paired together at Tynecastle.
Holders Inverness Caley Thistle will travel to Motherwell if they overcome Stirling Albion in a fourth-round replay next week and Ladbrokes Premiership leaders Celtic were drawn away to East Kilbride or Lothian Thistle Hutchison Vale.
Ladbrokes Championship leaders Rangers have a home tie against Kilmarnock and Annan Athletic's reward for shocking Hamilton Accies is a Galabank meeting with Morton.
Scottish Cup fifth-round draw
Motherwell v Stirling Albion or Inverness Caley Thistle
East Kilbride or Lothian Thistle HV v Celtic
Dundee United v Partick Thistle
Dunfermline Athletic or Ross County v Linlithgow Rose or Forfar Athletic
Rangers v Kilmarnock
Annan Athletic v Morton
Dumbarton v Dundee or Falkirk
Hearts v Hibernian
Ties to be played February 6/7