Interestingly, only the appearance hour is determined by RNG. The LotM consistently appears on the 5th day of a moon cycle as long as conditions are satisfied.