most likely, they select the participants according to the criteria, then they randomise those participants to the groups of the trial. For example, an rct to see which weight loss programme works better, like the bbc diet trials a few years ago was carried out on obese people with no co morbidities ... they advertised for these people, the randomised them into 5 groups (4 different diets and a control group). this was a true randomisation of the participants, who were picked according to the criteria