def _mw_bandit(min_prob, game, mix):
    """Multi-armed bandit multiplicative weights payoff function"""
    mix = game.minimum_prob(mix, min_prob=min_prob)
    prof = game.random_profile(mix)
    pay = game.get_payoffs(prof) * prof / game.num_role_players.repeat(game
        .num_role_strats)
    return pay / mix
