MCPcopy Create free account
hub / github.com/bighuang624/Algorithms-notes / geometric

Method geometric

code/algs4/StdRandom.java:238–243  ·  view source on GitHub ↗

Returns a random integer from a geometric distribution with success probability p . @param p the parameter of the geometric distribution @return a random integer from a geometric distribution with success probability p; or Integer.MAX_VALUE if p is (

(double p)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

uniformMethod · 0.95

Tested by

no test coverage detected