code: public static String randomResourceName(String prefix, int maxLen) {
          ResourceNamer resourceNamer = SdkContext.getResourceNamerFactory().createResourceNamer("");
          return resourceNamer.randomName(prefix, maxLen);
      }
docs: Gets a random name.
  
  @param prefix the prefix to be used if possible
  @param maxLen the maximum length for the random generated name
  @return the random name