Created
July 31, 2011 11:20
-
-
Save emres/1116720 to your computer and use it in GitHub Desktop.
A Java puzzler related to random numbers
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 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