Aberdeen Under-20s will host League Two Forfar in the Irn-Bru Cup second round.
League One side Peterhead were also drawn at home, where they will face Highland League club Brora Rangers.
Highland League champions Cove Rangers face a tough trip to League One club Brechin City.
And Turriff United will look to build on their shock win away to St Johnstone U20s when they host Montrose.
All second round ties will be played on either Tuesday, August 16 or Wednesday, August 17.
The draw was carried out at 12.30pm at Hampden Park, live on Periscope.
The Dons Colts beat Formartine United 5-2 on Tuesday night, thanks to a hat-trick from Scott Wright.
Peterhead were runners-up in the competition last year when it was the Petrofac Training Cup, losing 4-0 to Rangers in the final.
Cove and Turriff both came from behind to beat Premiership youngsters, winning 2-1 against Dundee U20s and St Johnstone U20s respectively.
Brechin City v Cove Rangers
Arbroath v East Fife
Peterhead v Brora Rangers
Turriff United v Montrose
Elgin City v Heart of Midlothian Colts
Aberdeen Colts v Forfar Athletic
Stranraer v Spartans
Partick Thistle Colts v Queen’s Park
Albion Rovers v Hamilton Academical Colts
Motherwell Colts v Airdrieonians
Cowdenbeath v Celtic Colts
Rangers Colts or University of Stirling v Stenhousemuir