diff --git a/src/AI/GA.py b/src/AI/GA.py index dea1a50..afd7f92 100644 --- a/src/AI/GA.py +++ b/src/AI/GA.py @@ -171,4 +171,7 @@ def pickEntity(player, map): if not finalEntities: # If all items are gone, pick random one finalEntities = map.getInteractablesByClassifier() - return random.choices(finalEntities, finalWeights)[0] + random.seed(10) + choice = random.choices(finalEntities, finalWeights)[0] + random.seed() + return choice