code: def _next_sample_index(self):
          
          return self.rng.choice(self.n_active,
                                 p=(self.stream_weights_ /
                                    self.weight_norm_))
docs: StochasticMux chooses its next sample stream randomly