Raspberry pi jukebox project

Hi, I found a really cool project where we can make a jukebox using raspberry pi and Volumio (instructables.com/id/DIY-Ju … pberry-Pi/). The way the jukebox works is by playing a song that is assigned to a specific button, when the button is pressed. My question is, is it possible for each button to access a playlist and play a random song chosen from that playlist? For example, if I had a playlist, ‘A’ with songs ‘x,y,z’ assigned to the red button and a playlist, ‘B’ with songs ‘a,b,c’ assigned to the green button, could i get the jukebox to play a randomly selected song from playlist A when the red button is pressed and then when the green button is pressed, a randomly selected song from playlist B is played? I hope my question makes sense! Thanks for any help in advance!