Created
November 5, 2012 09:58
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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