This is a great idea.
For the implementation, perhaps the random notes plugin can use the search results list?
For instance, we might search for the tag #statistics and then press the random note button to get a note from the search results.
This way the random note behaviour can grow with whichever search features and operators are added to Obsidian.