Hi, welcome to the forum!
I have created a snippet that should meet your needs. It takes a list of urls from the clipboard and takes 25% (rounds up if not whole number) of the urls from each domain and adds them to a list, then prints that list at the end. You can copy it to your dashboard here
Let me know if it works!
Best regards,
Alexander