Fixed random returning same int bug