Better not to lie to your parents and tell the real story, they’ll be mad yes but after that they will give you a good lesson and maybe guide you on the right way, gambling is not good at all.
If you have no extra money better not to gamble at all because you are being greedy and that is not healthy if you continue doing that kind of activities, its fine to lie sometimes but with regards to this one, its not ok because that money was meant for your basic needs.
It is true that you should be that open for your parents to know on what you are doing and they wont really be angry if you are just honest or if they do then thats part of disciplining their children
because wrong doings shouldnt really be tolerated and we know that they have much more experience than us which its understandable that you should obey
on what are their commands and always be obedient.