Hello,
On M/T/MX series with dual REs and default settings the Routing Engine in slot 0 is preferred master.
JUNOS and config sync between RE is not a default behaviour, you have to manually ensure that JUNOS on both RE is compatible with HW/linecards in the box (JUNOS versions on both REs may be different if you don't use GRES) and to sync config, use "commit sync".
Once both REs on the the box with dual REs are simultaneously rebooted, then RE0 becomes the master after coming up.
You don't have to simultaneously reboot both REs to achieve that, just do "request chassis routing-engine master switch [no-confirm]" to switch mastership.
HTH
Regards
Alex