Both of your suggestion is very acknowledging because when you look at the history of gambling it will make you to take far beyond human imagination and the beyond human thinking because when gambling started nobody knows about it and that is not fit to be proof that this is the origin of gambling but from the ancient time these people do exchange things and the from the process of exchanging things sometimes it will fall into gambling whereby if you don't meet up to a change with someone then you can go at it so gambling don't have beginning and it don't have an end
Gambling does have a beginning. I always think that gambling originates when trade between people was established, since we can not do gambling with ourselves alone, it was exercised when people learned to socialize, haggle with market prices, and make decisions when a certain event is too much for the tribe head to analyze. As long as humans exist, I don't think gambling will perish.
It's inherent in us it originates in us being risk takers and believing in something higher in us, in the olden days we called it spirit in the modern day we call it luck, we can see gambling in every culture, religion, and the cycle of times in the beginning when we are evolving and up to this time, gambling is here to stay and it evolves in the modern society as both profitable and for recreation, I don't think gambling can ever stop we can only educate people on the risk of gambling but never stop them from gambling.