Dale will face Wrexham away from home in the first round of the Emirates FA Cup.
The Red Dragon's 1-0 replay win over Chesterfield last night meant the National League side will host Dale.
This will be the first time the two sides have met in 12 years, with Dale's last trip to the Racecourse Ground being a 2-0 win on Boxing Day 2007.
The tie will be played on the weekend of Saturday 9th November, with a full confirmation of the date, kick-off time and admission details to be confirmed in due course.