1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| import java.util.*;
public class HelloWorld{
public static String randomString(int i) { Random ran = new Random(i); StringBuilder sb = new StringBuilder(); for (int n = 0; ; n++) { int k = ran.nextInt(27); if (k == 0) break;
sb.append((char)('`' + k)); }
return sb.toString(); }
public static void main(String[] args){ System.out.println(randomString(-229985452)+" "+randomString(-147909649)); }
}
|