returns an integer with a geometric distribution with mean 1/p . concode_field_sep Random random concode_elem_sep long seed concode_field_sep double cauchy concode_elem_sep long getSeed concode_elem_sep int poisson concode_elem_sep void main concode_elem_sep int discrete concode_elem_sep double uniform concode_elem_sep int uniform concode_elem_sep int uniform concode_elem_sep double uniform concode_elem_sep double random concode_elem_sep boolean bernoulli concode_elem_sep boolean bernoulli concode_elem_sep double pareto concode_elem_sep void setSeed concode_elem_sep double exp concode_elem_sep void shuffle concode_elem_sep void shuffle concode_elem_sep void shuffle concode_elem_sep void shuffle concode_elem_sep void shuffle concode_elem_sep void shuffle concode_elem_sep double gaussian concode_elem_sep double gaussian
int function ( double arg0 ) { if ( ! ( arg0 >= 0.0 && arg0 <= 1.0 ) ) throw new IllegalArgumentException ( "srini_string" ) ; return ( int ) Math . ceil ( Math . log ( uniform ( ) ) / Math . log ( 1.0 - arg0 ) ) ; }