Carlisle United have been handed a trip to Championship side Barnsley in the first round of the Carabao Cup.
The Blues were the last ball out of the pot in the northern section draw as they were given a trip to Oakwell.
It will see Steven Pressley's side go up against Daniel Stendel's Yorkshire outfit - who won promotion from League One last term - for a place in the second round.
It will be a first encounter between the Blues and the Tykes for some time.
They have not faced each other for 33 years, their last meeting coming in March 1986 when Carlisle won 2-1 at Oakwell in the old Division Two.
The clubs have never been opponents in the League Cup before.
The tie will be played in the week beginning August 12.Tonight's draw was conducted by Liverpool legend John Barnes and Arsenal favourite Ray Parlour in a branch of Morrisons in Colindale, which is near Wembley stadium.
Full draw
Northern Section:
Tranmere Rovers v Hull City
Grimsby Town v Doncaster Rovers
Wigan Athletic v Stoke City
Port Vale v Burton Albion
Nottingham Forest v Fleetwood Town
Bradford City v Preston North End
Blackpool v Macclesfield Town
Blackburn Rovers v Oldham Athletic
Mansfield Town v Morecambe
Accrington Stanley v Sunderland
Scunthorpe United v Derby County
Rochdale v Bolton Wanderers
Huddersfield Town v Lincoln City
Middlesbrough v Crewe Alexandra
Shrewsbury Town v Rotherham United
Sheffield Wednesday v Bury
Salford City v Leeds United
Barnsley v CARLISLE UNITED
Southern Section:
Colchester United v Swindon Town
AFC Wimbledon v MK Dons
Oxford United v Peterborough United
Queens Park Rangers v Bristol City
Plymouth Argyle v Leyton Orient
Wycombe Wanderers v Reading
Charlton Athletic v Forest Green Rovers
Gillingham v Newport County
Stevenage v Southend United
Luton Town v Ipswich Town
Walsall v Crawley Town
Bristol Rovers v Cheltenham Town
Brentford v Cambridge United
Coventry City v Exeter City
Swansea City v Northampton Town
West Bromwich Albion v Millwall
Portsmouth v Birmingham City
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here