get obstacles randomly in resources