Yes, there are some ways of doing this. It would be good to know more details about what you're trying to achieve, so we can help you better.
One way, for instance, is to create the portal at a random position (random(WindowWidth), random(WindowHeight)) and, then, having it spawn a random enemy from a family.
Cheers.