This is a smart contract about a casino game contract based on ethereum
How to generate a random number?
In fact, it is not easy to generate a random number in ethereum, but after many attempts and research by various developers, we were able to do it.
Maybe there are some other ways to generate a random number, for simplicity, I'll just show the code how we generate a random number.