Самый легкий рандомайзер героев доты на питоне

Начинающий
Статус
Оффлайн
Регистрация
29 Мар 2021
Сообщения
24
Реакции[?]
1
Поинты[?]
0
Код:
import random

dota2_heroes_list = ("Abaddon" ,"Alchemist", "Ancient Apparition", "Anti-Mage", "Arc Warden", "Axe", "Bane", "Batrider", "Beastmaster" , "Bloodseeker", "Bounty Hunter" ,"Brewmaster" , " Bristleback" , "Broodmother", "Centaur Warrunner", "ChaosKnight", "Chen","Clinkz","Clockwerk","CrystalMaiden","DarkSeer","Dark Willow","Dawnbreaker","Dazzle","DeathProphet","Disruptor","Doom","Dragon Knight","Earth Spirit","Earthshaker","Elder Titan","Ember Spirit","Enchantres","Enigma","Faceless Void","Grimstroke","Gyrocopter","Hoodwink","Huskar","Invoker","Io","Jakiro","Juggernaut","Keeper of the Light","Kunkka","Legion Commander","Leshrac","Lich","Lifestealer","Lina","Lion","LoneDruid","Luna","Lycan","Magnus","Marci","Mars","Medusa","Meepo","Mirana","Monkey King","Morphling","Naga Siren","Nature`s Prophet","Necrophos","Night Stalker","Nyx Assassin","Ogre Magi ","Omniknight","Oracle","Outworld Devourer","Primal Beast", "Pangolier","Phantom Assassin","Phantom Lancer","Phoenix" ,"Puck" ,"Pudge","Pugna","Queen of Pain", "Razzor","Riki","Rubick" ,"SandKing","Shadow Demon","Shadow Fiend","Shadow Shaman","Silencer","Skywrath Mage","Slardar","Slark","Snapfire","Sniper","Spectre","SpiritBreaker","Storm Spirit","Sven","Techies","Templar Assassin","Terrorblade","Tidehunter","Timbersaw","Tinker","Tiny","TreantProtector","TrollWarlord","Tusk","Underlord","Undying","Ursa","VengefulSpirit","Venomancer","Viper","Visage","Void Spirit","Warlock","Weaver","Windranger","Winter Wyvern","Witch Doctor","Wraith King","Zeus")

print(random.choice(dota2_heroes_list))
 
Последнее редактирование:
Пользователь
Статус
Оффлайн
Регистрация
14 Май 2020
Сообщения
232
Реакции[?]
48
Поинты[?]
3K
В следующий раз используй функцию на форуме вместо просто вставки текста
 

Вложения

coder of the year
Участник
Статус
Оффлайн
Регистрация
13 Мар 2019
Сообщения
886
Реакции[?]
266
Поинты[?]
4K
Код:
import random

dota2_heroes_list = ("Abaddon" ,"Alchemist", "Ancient Apparition", "Anti-Mage", "Arc Warden", "Axe", "Bane", "Batrider", "Beastmaster" , "Bloodseeker", "Bounty Hunter" ,"Brewmaster" , " Bristleback" , "Broodmother", "Centaur Warrunner", "ChaosKnight", "Chen","Clinkz","Clockwerk","CrystalMaiden","DarkSeer","Dark Willow","Dawnbreaker","Dazzle","DeathProphet","Disruptor","Doom","Dragon Knight","Earth Spirit","Earthshaker","Elder Titan","Ember Spirit","Enchantres","Enigma","Faceless Void","Grimstroke","Gyrocopter","Hoodwink","Huskar","Invoker","Io","Jakiro","Juggernaut","Keeper of the Light","Kunkka","Legion Commander","Leshrac","Lich","Lifestealer","Lina","Lion","LoneDruid","Luna","Lycan","Magnus","Marci","Mars","Medusa","Meepo","Mirana","Monkey King","Morphling","Naga Siren","Nature`s Prophet","Necrophos","Night Stalker","Nyx Assassin","Ogre Magi ","Omniknight","Oracle","Outworld Devourer","Pangolier","Phantom Assassin","Phantom Lancer","Phoenix" ,"Puck" ,"Pudge","Pugna","Queen of Pain", "Razzor","Riki","Rubick" ,"SandKing","Shadow Demon","Shadow Fiend","Shadow Shaman","Silencer","Skywrath Mage","Slardar","Slark","Snapfire","Sniper","Spectre","SpiritBreaker","Storm Spirit","Sven","Techies","Templar Assassin","Terrorblade","Tidehunter","Timbersaw","Tinker","Tiny","TreantProtector","TrollWarlord","Tusk","Underlord","Undying","Ursa","VengefulSpirit","Venomancer","Viper","Visage","Void Spirit","Warlock","Weaver","Windranger","Winter Wyvern","Witch Doctor","Wraith King","Zeus")

print(random.choice(dota2_heroes_list))
специально просмотрел всех героев в массиве, так и не нашел праймел биста
 
Начинающий
Статус
Оффлайн
Регистрация
29 Мар 2021
Сообщения
24
Реакции[?]
1
Поинты[?]
0
Сверху Снизу