For example, I can do this with Numpy by passing a list of the associated probability of each entry as: rand_idx = numpy.random.choice(300, ...
確定! 回上一頁