public static Locale randomLocale(Random random){
  return localeForLanguageTag(availableLanguageTags[random.nextInt(availableLanguageTags.length)]);
}

public static Locale randomLocale ( Random random ) { return localeForLanguageTag ( availableLanguageTags [ random . nextInt ( availableLanguageTags . length ) ] ) ; }
return a random locale from the available locales on the system .
