Skip to content

Instantly share code, notes, and snippets.

@darrenfu
Created November 5, 2012 09:58
Show Gist options
  • Save darrenfu/4016411 to your computer and use it in GitHub Desktop.
Save darrenfu/4016411 to your computer and use it in GitHub Desktop.
To random every word by the first and last character in one sentence.
private static int[] BASE_CHARS;
static {
BASE_CHARS = new int[26];
int a_idx = (int)'a';
for (int i=0; i<26; i++) {
BASE_CHARS[i] = a_idx + i;
}
}
static String makeRandom(String content) {
if (null == content) {
throw new Exception("Source content is null!");
}
char[] chars = content.toCharArray();
for (int i=0; i<chars.length; i++) {
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment