initialized resource map with random resources