Tagged Questions
4
votes
5answers
478 views
Handling random with unique chance in Python
Okay, let's say you have a handful of enemies, each with their own 'rarity' to spawn.
For example:
monsterlist = []
snake = 'snake', 60
wolf = 'wolf', 80
antlion = 'antlion', 30
...