Random node - add ability to pass in the 'From' and 'To' options

I have a case where I'm reading a folder and storing the list of files in an array. I'd like to pick a random file from that list.

It would be nice if the random node had the ability to accept 'From' and 'To' from the incoming message. In my case I'd be able to pass in the number of items in the array (instead of coding a function) to get a random number for the array.

Does this seem like a reasonable addition to the node and would a PR to add this functionality be welcome?

Yes I can’t see a problem, as long as it’s in the usual style of the config option should be left blank to allow the msg option, and it tests that it is numeric etc. And suitable tests are added.

Great, I'll work on it in the next few days