public void UpdateWeights() { _shuffleBag.clear(); if (_randomWeights != null) { for (int i = 0; i < _randomWeights.Length; i++) { _shuffleBag.addMany(i, _randomWeights[i]); } } }