ozgelethe/Discrete-Distribution
DiscreteDistribution.java that takes an integer command-line argument m, followed by a sequence of positive integer command-line arguments a1,a2,…,an, and prints m random indices (separated by whitespace), choosing each index i with probability proportional to ai.
JavaMIT
Stargazers
No one’s star this repository yet.