// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.Random;

public class RNG {
    private static final int N = 100000000;
    public static void main(String[] args) {
        Random rng = new Random();
        long t1 = System.currentTimeMillis();
        for(int i = 0; i < N; i++) {
            int v = rng.nextInt(36) + 1;
            if(v < 0) throw new RuntimeException("Ooops");
        }
        long t2 = System.currentTimeMillis();
        System.out.println((N * 1000L) / (t2 - t1));
    }
}
