Added Eclipse files to .gitignore
Fixed random number generation