MCPcopy Create free account
hub / github.com/aistrate/AlgorithmsSedgewick / bernoulli

Method bernoulli

StdLib/StdRandom.java:129–131  ·  view source on GitHub ↗

Return a boolean, which is true with probability p, and false otherwise.

(double p)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

drawRandConnMethod · 0.95
mainMethod · 0.95

Calls 1

uniformMethod · 0.95

Tested by

no test coverage detected