added arc4random method to return a random integer