The draw for the SPFL Tunnock's Caramel Wafer Challenge Cup third round took place from 12.30pm live on YouTube from Hampden Park in Glasgow.
Wrexham AFC were drawn against Scottish Championship side Ayr United at the Racecourse Ground.
The third round will take place on Saturday 7 September or Sunday 8 September, 2019. Once arrangments have been made 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.