The draw for the second round of the Petrofac Training Cup took place on Monday afternoon.
Fresh from demolishing championship rivals Hibernian 6-2 at Easter Road, Rangers have been handed an away tie against Ayr United on Wednesday 19th August.
St.Mirren, who were relegated from the Premiership last season, will travel to Dumfries to play Annan Athletic on Tuesday 18th August.
Defending champions Livingston will face a tough tie against fellow Championship side Queen of the South away from home and Alloa Athletic who were beaten finalists last season are at home to Elgin City.
Full Second Round draw:
TUESDAY 18 AUGUST 2015
Annan Athletic v St. Mirren
Forfar Athletic v Dunfermline Athletic
Falkirk v Peterhead
Queen of the South v Livingston
Queen’s Park v Dumbarton
Stenhousemuir v Raith Rovers
WEDNESDAY 19 AUGUST 2015
Alloa Athletic v Elgin City
Ayr United v Rangers