Update and rename .gitignore to .cpp

It's just a simple number generator. It uses time to generate different numbers.