changed generate random way
added .idea folder to gitignore
fixed wrong random values