public static int asInt(double datum,int n){
  double d=(datum == 0.0) ? 0.0 : datum;
  long[] data={Double.doubleToLongBits(d)};
  return asInteger(data,n);
}

public static int asInt ( double datum , int n ) { double d = ( datum == 0.0 ) ? 0.0 : datum ; long [ ] data = { Double . doubleToLongBits ( d ) } ; return asInteger ( data , n ) ; }
returns a deterministic uniform random integer between zero ( inclusive ) and n ( exclusive ) given the input double .
