Holders St Johnstone have been drawn away to Queen of the South in the fifth round of the William Hill Scottish Cup.
There are two all-Premiership ties, with Dundee up against Celtic at Dens Park and Partick Thistle at home to the winner of the replay between Inverness CT and St Mirren.
League 2 leaders Arbroath travel to Hibernian while Berwick Rangers or Albion Rovers have been paired with Lowland League Spartans at Ainslie Park.
William Hill Scottish Cup fifth-round draw
Queen of the South v St Johnstone
Rangers v Raith Rovers
Dundee v Celtic
Hibernian v Arbroath
Falkirk v Annan Athletic or Brechin City
Stranraer or Dunfermline Athletic v Dundee United
Partick Thistle v St Mirren or Inverness Caley Thistle
Spartans v Berwick Rangers or Albion Rovers
Ties to be played weekend of February 7