How does roon shuffle genres?

If I pick a genre, say pop/rock, and click shuffle, how does roon determine what tracks to play?

Maybe I should have asked, does it use folder browsing?

Or, does the selection method affect sound quality? Is it different depending on my ethernet, usb, or power cable?

So, it’s a riddle, wrapped in a mystery, inside an enigma? Ok, then.