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)