Skip to content

Commit

Permalink
Update README.md (#1258)
Browse files Browse the repository at this point in the history
Fix that error NameError: name 'rng' is not defined
  • Loading branch information
scampion authored Nov 10, 2024
1 parent b5d26c4 commit d842522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ character = generator("Give me a character description", seed=seed)
print(repr(character))
# Character(name='Anderson', age=28, armor=<Armor.chainmail: 'chainmail'>, weapon=<Weapon.sword: 'sword'>, strength=8)

character = generator("Give me an interesting character description", rng=rng)
character = generator("Give me an interesting character description")

print(repr(character))
# Character(name='Vivian Thr', age=44, armor=<Armor.plate: 'plate'>, weapon=<Weapon.crossbow: 'crossbow'>, strength=125)
Expand Down

0 comments on commit d842522

Please sign in to comment.