javascript: How to search multiple sites with Google and get random results?

I am trying to find examples of placements in English in a set of sites. I know how to search in several places, since it has been resolved here before.

search term site: A O site: B O site: C

The problem is that Google shows all the results of site A and then site B, which makes you lose the purpose of searching several sites at the same time, since you must go through all the results of site A to get the results from site B.

Is there any way (for example, a JavaScript code) to make Google results show up randomly so you can have examples of all the sites in the first 100 results?