Hamshore said:if you build a city with a barb hut in its radius - do you aways get a tech? just happened twice to me in a demi-god game where I've switched to never opening hut (too many barbars...)
Nope, that's just (good) luck!!

However, if you found a city 1 tile from a goody hut, you will NEVER get barbarians.
Read this thread for more info about goody huts.