title: What is the Java equivalent of Python's Numpy np.random.choice?
body: <p>I was looking for Java's equivalent code or underlying theory for pythons np.random.choice (Numpy as np). I am trying to implement Q-learning in Java. I have a similar implementation that uses Python's np.random.choice method to select the random moves from the probability distribution.</p>
  
  <p><a href="https://docs.scipy.org/doc/numpy-1.12.0/reference/generated/numpy.random.choice.html" rel="nofollow noreferrer">Python's code</a></p>
  
  <p>Input list: ['pooh', 'rabbit', 'piglet', 'Christopher'] and  probabilies: [0.5, 0.1, 0.1, 0.3]</p>
  
  <p>I want to select one of the value from the input list given the associated probability of each input element.</p>