update random type of resource