// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
public class Test {
    private static void test(RNG rng) {
        for(int i = 0; i < 10; i++) {
            System.out.println(rng.getInt());
        }
        for(int i = 0; i < 10; i++) {
            System.out.println(rng.getDouble());
        }
    }
    private static void testMinStd() {
        test(new MinStd(1234567));
    }
    private static void testUniform32() {
        test(new Uniform32(1234567, 1234567));
    }
    private static void testLEcuyer() {
        test(new LEcuyer(new int[] { 1234567, 1234567, 1234567, 1234567, 1234567 }));
    }
    private static void testCMRG() {
        test(new CMRG(new int[] { 1234567, 1234567, 1234567 }, new int[] { 1234567, 1234567, 1234567 }));
    }
    public static void main(String[] args) {
        testMinStd();
        testUniform32();
        testLEcuyer();
        testCMRG();
    }
}
