I am building a lottery D-App now based on Ethereum. While creating a smart contract, I found that Solidity has no method to generate random numbers. Solidity is not capable of creating random numbers. So I've created my own method to generate random numbers using timestamp.
Is it possible to make this method as a library so that everyone can use my method with a simple import command?
If it's possible, many developers could save their time.