Sheffield United will face Leicester and Blackburn will host local rivals Burnley in the second round of the Carabao Cup.
Sunderland beat Bury 1-0 at Gigg Lane to become the penultimate team to secure their place in the draw, which took place on and was made by John Salako and Alex McLeish.
Grimsby and Derby County will have to meet again to decide who travels to Barnsley in the second round after their original tie was abandoned on Tuesday because of waterlogging.
West Ham will face Cheltenham in the second round, with the League Two side hosting that game despite being drawn away – the London Stadium will not be ready for football in time.
Similarly, the newly-laid pitch at Rodney Parade means Newport County will play their ‘home’ tie against Leeds United at Elland Road.
Elsewhere the draw saw a couple of tasty derbies come out of the hat – Blackburn Rovers will host fierce rivals Burnley while QPR and Brentford meet in a west London derby.
Draw in full:
Carlisle United v Sunderland
Bolton v Sheffield Weds
Accrington v West Brom
Newcastle United v Nottingham Forest
Newport County v Leeds United (to be played at Elland Road)
Stoke City v Rochdale
Huddersfield Town v Rotherham United
Middlesbrough v Scunthorpe
Doncaster Rovers v Hull City
Blackburn Rovers v Burnley
Sheffield United v Leicester City
Aston Villa v Wigan Athletic
Barnsley v Derby or Grimsby
QPR v Brentford
Crystal Palace v Ipswich Town
Watford v Bristol City
Norwich City v Charlton Athletic
West Ham v Cheltenham (to be played at the LCI Rail Stadium)
Brighton v Barnet
Cardiff City v Burton Albion
Southampton v Wolves
Fulham v Bristol Rovers
MK Dons v Swansea City
Birmingham City v Bournemouth
Reading v Millwall
Ties to be played the week commencing Monday, August 21.