changed to getRandomInte()