Aberdeen will meet Hamilton in the BetFred Cup last 16 .
The fixture will take place away at the Superseal stadium.
Aberdeen are seeded alongside Celtic, The Rangers, St Johnstone, Ayr United, Falkirk, Motherwell and Dundee Utd.
The draw took place this afternoon following the Dundee derby.
Second-round ties are due to be played on the midweek of August 8/9th.
The rest of the draw is as follows:
- St Johnstone v Partick Thistle;
- Hibernian v Ayr Utd;
- The Rangers v Dunfermline;
- Ross County v Motherwell;
- Falkirk v Livingston;
- Celtic v Kilmarnock;
- Dundee v Dundee Utd;