Added random factor to the exp gained
updated version