Getting a good night’s rest may make you feel like a lottery winner, according to new research published in the journal SLEEP.

Psychologists from the University of Warwick in England analyzed the sleep patterns of more than 30,500 people in the UK. They found that positive changes in sleep habits, including quality, quantity, and using fewer sleep medications, was linked with improved health and wellbeing in patients, according to a statement from the university.

Read: Sleep Deprivation: 5 Ways It Can Affect Your Mind And Body​

To measure the participants' health, they took two surveys: the General Health Questionnaire (GHQ), and the 12-Item Short Form Survey (SF-12). The GHQ is used to identify certain mental disorders and conditions, while the SF-12 assesses physical and emotional health.

Improved mental health is seen among lottery winners and those who get good’s night rest. Photo courtesy of Pixabay

Those who got a better night’s rest scored better on the GHQ. Their overall improved mental wellbeing can be compared to the wellbeing of those who win a jackpot of about $247,000, researchers said.

Unfortunately, million of Americans report insufficient sleep and it's even deemed a public health problem, according to the Centers for Disease Control and Prevention.

To get better shut eye, avoid sleeping medications, advises study author and psychologist Nicole Tang, according to the news release. She also states quality is more important than quantity for an optimal state of wellbeing.

“We are far from demonstrating a causal relationship, but the current findings suggest that a positive change in sleep is linked to better physical and mental wellbeing further down the line,” Tang said.

Other ways to improve your sleep, as suggested by the National Sleep Foundation, are to: stick to a sleep schedule, exercise daily, avoid large meals before sleeping, as well as caffeine, alcohol, and nicotine.

See also: Get Better Sleep: Infographic Shows Why You Can’t Make Up For Hours Of Missed Sleep​

Sleeping With Pink Noise May Boost Your Memory and Help You Sleep Better, Study Says