Skip to content

Instantly share code, notes, and snippets.

@emres
Created July 31, 2011 11:20
Show Gist options
  • Save emres/1116720 to your computer and use it in GitHub Desktop.
Save emres/1116720 to your computer and use it in GitHub Desktop.
A Java puzzler related to random numbers
import java.util.Random;
public final class RandomPuzzle {
public static void main(String[] args) {
for(int i = 0; i < 256; i++) {
System.out.println(new Random(i).nextInt(8));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment