public int nextInt(int n,double p){
  if (n * Math.min(p,1 - p) <= 0.0)   throw new IllegalArgumentException();
  return generateBinomial(n,p);
}

public int nextInt ( int n , double p ) { if ( n * Math . min ( p , 1 - p ) <= 0.0 ) throw new IllegalArgumentException ( ) ; return generateBinomial ( n , p ) ; }
returns a random number from the distribution with the given parameters n and p ; bypasses the internal state .
