It is a 60% chance of receiving the Ex Raid for the qualifying gym that you raided at. There are more factors that influence the chance such as Silver vs Gold status of that said gym. For every Ex raid you receive your chance of getting another one decreases 50% each time.
Source: https://thesilphroad.com/news/ex-raid-selection-criteria-data-says-december-1st-wave/