Created
December 3, 2015 03:14
-
-
Save dungdt88/6b9938ae2b09854124d2 to your computer and use it in GitHub Desktop.
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
import java.util.Random; | |
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println(randomString(-229985452) + " " + randomString(-147909649)); | |
} | |
public static String randomString(int i) { | |
Random ran = new Random(i); | |
StringBuilder sb = new StringBuilder(); | |
while (true) { | |
int k = ran.nextInt(27); | |
if (k == 0) { | |
break; | |
} | |
sb.append((char)('`' + k)); | |
} | |
return sb.toString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment