[Plugin] Randomizer

A long overdue update to the Randomizer Plugin description page…….

Randomizer is a plugin which will allow the user to;

Load and play a number of random tracks from the music library;
Load and play a random album from the music library;
Load and play the album from the track that is currently playing.

The default number of random tracks is 25 but can be changed by the user.

When installed the plugin now appears in the Sources menu making it quicker and easier to use.

To use with lircrc add;

config = node /data/plugins/user_interface/randomizer/randomTracks
or,
config = node /data/plugins/user_interface/randomizer/randomAlbum
or,
config = node /data/plugins/user_interface/randomizer/trackToAlbum

Edit….
With the advent of Volumio 4 and the upgrade to the GPIO buttons plugin allowing Custom Emit - the possible Method names available in Randomizer are;

                           randomTracks
                           randomAlbum
                           trackToAlbum

and for anyone who prefers ‘previous’ to start the previous track rather than restart the current track;

                           truePrevious
2 Likes

Yeah, the update was way earlier then this post :+1:

hello, is there a way to send “node /data/plugins/user_interface/randomizer/randomTracks” at volumio startup ?
thanks.

please don’t cross post the same question on multiple posts.

Hi
I’m using your plugin with Volumio 3.785.
Every time I use “Random album” it adds tracks twice.
For example with 10 tracks album I’m getting “1,2,3…9,10,1,2,3…9,10”. It happend every single time I checked.

Please upgrade to the latest stable version (VERSION: 3.812 RELEASE DATE: 13-05-2025), As I can’t reproduce this behavior.

I found, I had a symlink inside the music directory, linking back to the music directory. I belive that is why I had almost every track doubled, and that caused above-mentioned albums doubles.

The only thing I’m wondering about is why the volumio did not fall into an infinite loop… But I can live with that :smiley:

Hello Old_Duffer,

First of all, thank you for developing and maintaining the Randomizer plugin. I have been testing it with a large local music library stored on a NAS and it works very well.

I would like to suggest a feature that I believe could be very useful for many users:

Random playback by Genre

Examples:

  • Random Electronic
  • Random Rock
  • Random Jazz
  • Random Classical
  • Random Salsa

My library contains thousands of tracks, all properly tagged by genre. Currently, Randomizer can select random tracks from the library, but there is no way to restrict the selection to a specific genre.

I investigated several alternatives using MPD and custom playlists, but Volumio manages its own internal playlists and queue, making genre-based random playback difficult to achieve through external scripts.

Since Randomizer already accesses the Volumio music library, perhaps it could offer:

  • Random tracks from selected genre
  • Random albums from selected genre
  • Option to choose the number of tracks/albums

This would make the plugin even more useful for users with large local collections.

Thank you for considering the suggestion and for your work on the plugin.

Best regards.