jeudi 16 novembre 2017

Activate certain functions based on percent

            if chance == 1:
                function1()

            elif chance == 4:
                function2()

            elif chance == 20:
                function3()

            elif chance == 10:
                functiongettingoutofideas()

            elif chance == 40:
               function_minecraft_club_was_not_on_today_insertcryingemoji()

            elif chance == 10:
               function8()

            elif chance == 4:
                functionthesearealotoffunctions()

            elif chance == 5:
                function_above_when_i_mean_5_i_mean_5_percent_chance()

            elif chance == 6:
                function_thank_you_for_your_help()

In the if and the elifs when i put for example, chance == 10, that means 10% chance of that function being activated.

Any help will be much appreciated




Aucun commentaire:

Enregistrer un commentaire