Skip to content

Instantly share code, notes, and snippets.

@Deamon5550
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save Deamon5550/10485812 to your computer and use it in GitHub Desktop.

Select an option

Save Deamon5550/10485812 to your computer and use it in GitHub Desktop.
Hello World
import java.util.Random;
public class Main {
public static void main(String[] args) {
Random rand = new Random(-229985452);
StringBuilder sb = new StringBuilder();
int k=1;
for (;;)
{
k = rand.nextInt(27);
if(k == 0) break;
sb.append((char)('`' + k));
}
sb.append(' ');
rand.setSeed(-147909649);
k=1;
for (;;)
{
k = rand.nextInt(27);
if(k == 0) break;
sb.append((char)('`' + k));
}
System.out.println(sb.toString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment