Adding randomInteger function