How do circadian rhythms works?

Endogenous. A circadian rhythm comes full cycle every 24 hours. It is endogenous but believed by many to be influenced by the position of the moon to the earth.