fork download
  1. import java.util.Random;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. for (int n = 0; n < 100; n++)
  6. for (int h = 0; h < 10; h++)
  7. if ((((((((27*n + 8) << 17)|h) * 0x5DEECE66DL) + 11) >> 17) & 0x7FFFFFFF) % 27 == 1)
  8. {
  9. Random r = new Random((((((27*n + 8) << 17)|h) - 11) * 246154705703781L) ^ 0x5DEECE66DL);
  10. System.out.printf("%d,%d\n", r.nextInt(27), r.nextInt(27));
  11. }
  12. }
  13. }
Success #stdin #stdout 0.11s 34104KB
stdin
Standard input is empty
stdout
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1
8,1