nodes pass the most used information as msg.payload - the info box on the right should tell you if anything else is available... so the random node puts the number into msg.payload. The name field is there so you can customise the label in the editor window, it doesn't affect the message.
so in the function if you want to move it to another property you then need
new_msg.payload["Random"] = msg.payload; // set the "new" payload.Random property to be the "old" payload.