set obstacle by random