The draw for the SPFL Tunnock's Caramel Wafer Challenge Cup quarter-final took place at 1.00pm live on YouTube from Hampden Park in Glasgow.
Wrexham AFC were drawn away against Solihull Moors or Rangers Colts.
The remaining fourth-round match between Solihull Moors and Rangers Colts will be played on Tuesday October 29, kick-off 7.45pm.
The quarter-final ties are scheduled to take place on the weekend of 15/17 November 2019. Once arrangments have been made and any TV picks confirmed, the club will inform supporters on the usual channels.
The Dragons were entered in to the Scottish competition to represent the Vanarama National League alongside Solihull Moors. Qualification for National League representitive clubs is the result of the two highest placed clubs from the previous season who did not gain promotion.
Full draw
Inverness Caledonian Thistle v Clyde
Raith Rovers v Elgin City
Solihull Moors or Rangers Colts v Wrexham
Stenhousemuir v Partick Thistle