// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
public abstract class RNG {
    public abstract int getInt();
    public abstract int getMaxInt();
    public double getDouble() {
        return (getInt() / (double)getMaxInt());
    }
}
