Celtic will be the Scottish Cup holders at home in Hibranian in the quarter -finals of this season competition.
Hearts, who made a penalty kick against St. Mirren before the lottery, Dundy, while St. Johnston goes to Levingston.
Queens Park Rangers took out on Sunday and is rewarded with a trip to Aberdeen.
Relationships will be played on the weekend on 9/8 March.
Celtic is looking to make it three times in a row and won the cup six times since Hips victory in 2016.
Saint Johnston raised the last cup in 2021, in the same year they beat Levingston in the League Cup final.
Hearts have lost in three finals since they were postponed at the 2012 show, while Dundy's only success was in 1910.
Queens Park may not win the fifth place in the championship, in the competition since 1893, but with 10 successes, the third place remains in the list behind Celtic and Rangers.
He has not won the competition in the competition since 1990.