Warning: this is not a secure way to add random numbers to your smart contract, if you plan to deploy this to any sort of mainnet- you should look into something like Chainlink’s VRF. Using the approach that we are going to discuss in the article is for learning purposes only, and deploying this code to mainnet will expose your contract to a number of attack vectors. This is your warning, don’t try to sue me if you don’t listen and end up losing your DAO’s treasury.The ‘why’:So you’ve been wo...