Loneliness can be an attraction for a gambler because when he gambles and loses and does not have enough money to re-deposit, he will try to borrow from others to recover his losses. So Lonelines can make a gambler more addicted to gambling. In this case, if he wins the gamble and recovers his losses, he can repay his loans, but if he loses and loses them too, he is in great danger. And this is why you should never gamble with a loan
Loneliness without any activity can make a person reminisce about his past and if he had the experience of gambling in the past, he might want to repeat it. And if he doesn't realize that his past can make him gamble more often than before, he could become addicted to gambling without realizing it. And he might borrow money to continue gambling, especially if he runs out of money gambling. He couldn't think anymore because of his loss, so he could only think about how to recover from it. That's where good self-control comes in, which can prevent him from returning to gambling and can make him realize that he doesn't need to return to gambling, especially when he has had bad experiences with gambling. He must be able to find other activities that are not related to gambling so that he can avoid gambling and not experience gambling addiction. Loneliness requires a solution so as not to think about gambling and maybe someone should be able to find new activities that can relieve their loneliness.
Actually, it not about the past but about what activities can make him feel happiness and satisfaction because loneliness can make someone have thoughts that are more likely to look for things he can do but it is also very enjoyable to get rid of boredom or feelings of loneliness.
If in the past he liked to gamble then it is very likely that even now he still gambles even though the intensity has decreased quite lot, but at least he still occasionally enters gambling sites to play.
And of course for a lonely gambler, this is the right time or momentum to fulfill their passion for gambling, they tend to want to use some money to play or bet because that is one way they can do it when they have boring free time.
The same thing will be very different for someone who doesn't like gambling because they will of course do other activities that they usually do.
I think it all depends on each person habits and gambling habits, so the first thing people think about is gambling and other habits such as traveling, so they will seek pleasure by traveling, not everyone will be able to jump into gambling straight away.
But it does not rule out the possibility that gambler will look for other more useful activities, such as looking for busy work or producing number of valuable items that can be sold.
Habits are the main influence in person way of thinking, but attitude will also determine what must be done, it just that if we talk about most or almost all of it, habits are still things that are always thought about and done at any time.