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

Method discrete

code/algs4/StdRandom.java:312–334  ·  view source on GitHub ↗

Returns a random integer from the specified discrete distribution. @param probabilities the probability of occurrence of each integer @return a random integer from a discrete distribution: i with probability probabilities[i] @throws NullPointerException if {@code probabilit

(double[] probabilities)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainMethod · 0.95

Calls 1

uniformMethod · 0.95

Tested by

no test coverage detected