A Random Note/File command
I'd like to be able to add randomness to a template, much like <% tp.web.random_picture() %> does, except from my own vault. (My specific use case is: I'd like to have an easy way to insert a random image from one of the subfolders from my attachment folder. A generalized randomness function without having to understand the javascript would probably be more useful than solving my very narrow case, though.)
If the javascript to do this is super simple and I just haven't gotten it, forgive me, I stared at someone's example for a similar thing for two days before I came here to make the suggestion.
How can I use https://github.com/javalent/dice-roller rolled results inside templater?
You can write a script to use the random function: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random