def choose_experiment(self, name):

        experiment = oz.bandit.Experiment(self.redis(), name)
        choice = self.get_experiment_choice(name)

        # If the currently selected user choice is no longer valid, nullify it
        if not choice in experiment.choice_names:
            choice = None

        if not choice:
            if random.random() >= 0.1:
                # Join the best performing choice
                default_choice = experiment.default_choice

                if default_choice:
                    choice = default_choice

            if not choice and len(experiment.choice_names) > 0:
                # Join a random choice
                choice = random.choice(experiment.choice_names)

            # Opt the user in
            if choice:
                self.join_experiment(name, choice)

        # Add to the play count for the selected choice
        if choice:
            experiment.add_play(choice)

        return choice
Return a random complex number.
dataset/ETHPy150Open dailymuse/oz/oz/bandit/middleware.py/BanditTestingMiddleware.choose_experiment--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/utilities/randtest.py/random_complex_number