code: public static String generatePassphrase(final String delimiter, final int words, final Dictionary dictionary)
      {
          String result = "";
          final SecureRandom rnd = new SecureRandom();
          final int high = dictionary.getSortedDictionary().size();
          for (int i = 1; i <= words; i++)
          {
              result += dictionary.getSortedDictionary().get(rnd.nextInt(high));
              if (i < words)
              {
                  result += delimiter;
              }
          }
          return result;
      }
docs: Generates a passphrase from the supplied dictionary with the requested word count.
  
  @param delimiter  delimiter to place between words
  @param words      the count of words you want in your passphrase
  @param dictionary the dictionary to use for generating this passphrase
  @return the passphrase