Motherwell have been drawn to face Rangers in the third round of the Scottish Communities League Cup.
Raith Rovers, who beat Ross County in the previous round, face a trip to Celtic.
Stenhousemuir have a home tie against Inverness Caledonian Thistle after knocking out holders Kilmarnock in round two.
And Queen of the South face Dundee United at Palmerston, while Queen’s Park travel to St Johnstone.
Celtic, Dundee United, Hearts, Motherwell and St Johnstone enter the tournament in round three because of their involvement in European competition.
Third -round draw for Scottish Communities League Cup
Celtic v Raith Rovers
Rangers v Motherwell
St Mirren v Hamilton Academical
Queen of the South v Dundee United
Hearts v Livingston
Dunfermline Athletic v Aberdeen
St Johnstone v Queen’s Park
Stenhousemuir v Inverness Caledonian Thistle
* Ties will be played on Tuesday 25 or Wednesday 26 September, 2012