Changed loop in randRangeUnique to include the max value
Merge pull request #44660 from Helpsypoo/randRangeUnique

Changed loop in randRangeUnique to include the max value