Random selection from a dropdown with ability to restrict to a range

An application I am testing uses 3 drop downs to enter in a date of birth (one for day, month and year). Randomly selecting the month is the only one I can so far carry out without possibly causing issues later on in the application where for example the 30th or 31st of February is chosen which are invalid dates. I’d also like to limit the range of the years dropdown to a smaller subset. Previously I have managed to do this with other testing platforms via the use of custom JS code written specifically for the purpose. Can anyone suggest way either via TestProject itself or an available add-on, of ensuring the day drop down only ever picks from 1-28 while also restricting the date range available?