code: def random_histogram(counts, nbins, seed):
      
      numpy.random.seed(seed)
      return numpy.histogram(numpy.random.random(counts), nbins, (0, 1))[0]
docs: Distribute a total number of counts on a set of bins homogenously.
  
      >>> random_histogram(1, 2, 42)
      array([1, 0])
      >>> random_histogram(100, 5, 42)
      array([28, 18, 17, 19, 18])
      >>> random_histogram(10000, 5, 42)
      array([2043, 2015, 2050, 1930, 1962])