I've tried to work it out myself but I'm just stuck on what I'm misunderstood.
The code:
func _ready():
randomize()
for i in range(3):
Agent["Name"] = Names[randi() % Names.size()]
Agent["Persuade"] = randi() % 10 + 1
Agent["Combat"] = randi() % 10 + 1
Agent["Stealth"] = randi() % 10 + 1
Agent["Hacking"] = randi() % 10 + 1
AgentList.append(Agent)
i += 1
The result:
[{Combat:5, Hacking:3, Image:1, Name:Test, Persuade:6, Stealth:9}, {Combat:5, Hacking:3, Image:1, Name:Test, Persuade:6, Stealth:9}, {Combat:5, Hacking:3, Image:1, Name:Test, Persuade:6, Stealth:9}]
Each time I run the program it will generate different results, but within the actual generation the numbers will always be the same. I want them to be different for each agent.