Multiplication function or similar

What do you mean by RANDOM nodes? Do you mean a particular node type that you have installed?

If you mean that you have two messages coming in from different nodes and you want to join the messages so that you can use data from both nodes in a function node (for example) then have a look at the example in the cookbook on joining streams.
https://cookbook.nodered.org/basic/join-streams