Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return list of n unique companies (n_unique keyword for all providers?) #971

Closed
Zylatis opened this issue Jun 20, 2019 · 1 comment · Fixed by #1226
Closed

Return list of n unique companies (n_unique keyword for all providers?) #971

Zylatis opened this issue Jun 20, 2019 · 1 comment · Fixed by #1226

Comments

@Zylatis
Copy link

Zylatis commented Jun 20, 2019

  • Faker version: 1.0.7
  • OS: Ubuntu 16.04

I was wondering if it is possible to generate a list of 'n' unique company names? I saw some PR's which gave a unique keyword for 'words' but doesn't seem to extend to other providers? I understand i could just keep regenerating and dropping duplicates until I got a unique set of length n, but would be nice to just have a keyword for that (plus this may be suboptimal depending on how Faker implemented under the hood, which i don't know enough about i confess)

@josephwon0310
Copy link

Has this issue been tackled by anyone already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants