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
| // from guava library | |
| import com.google.common.collect.ContiguousSet; | |
| import com.google.common.collect.DiscreteDomain; | |
| import com.google.common.collect.Range; | |
| // change these two variables | |
| final long nPeople = 23; | |
| final long nDays = 365; | |
| ContiguousSet<Long> matrix = ContiguousSet.create( |
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
| /** | |
| * @author Ed Duarte (<a href="mailto:hi@edduarte.com">hi@edduarte.com</a>) | |
| */ | |
| public class Prime { | |
| private java.security.SecureRandom random; | |
| public Prime() { | |
| this.random = new java.security.SecureRandom(); |