I'm not sure if this is what you're looking for.
Create a new Smartlist, and paste this into the Import/Export section:
[Media Type]=[Audio] [Media Sub Type]=[Music] [Track #]=1 ~n=10 ~sort=Random ~a
This example is limited to 10 albums, but you can use any number or remove the limit.