vlc media player – VLC playlist with random selection in folders

I would like to make a simple playlist in VLC where the first file is loaded randomly from the "A" folder, then the second randomly from the "B" folder, then looped from the beginning and load different files from folders. The problem is that VLC develops the folders and reads all the files they contain. How can I make such a playlist?