Skip to content

Handle duplicate words #4

@hardwaterhacker

Description

@hardwaterhacker

As pointed out by Aaron Beardslee, random.sample() will generate collisions if the source dictionary is not uniq'd. This is a possible way of handling it.

words = list(set(word.strip() for word in words))

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions