Updated gitignore and separated random number handling