/** * Equivalent to <tt>nextDouble()</tt>. This has the effect that * distributions can now be used as function objects, returning a random * number upon function evaluation. */ public double apply(double dummy) { return nextDouble(); }
/** * Equivalent to <tt>nextDouble()</tt>. This has the effect that * distributions can now be used as function objects, returning a random * number upon function evaluation. */ public double apply(double dummy) { return nextDouble(); }
/** * Returns a random number from the distribution; returns * <tt>(int) Math.round(nextDouble())</tt>. Override this method if * necessary. */ public int nextInt() { return (int) Math.round(nextDouble()); }
/** * Returns a random number from the distribution; returns * <tt>(int) Math.round(nextDouble())</tt>. Override this method if * necessary. */ public int nextInt() { return (int) Math.round(nextDouble()); }