Random choose nodeId if the user does not pass it in