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

Sugestion: seed for random generator #25

Closed
fflori4n opened this issue Apr 30, 2020 · 5 comments
Closed

Sugestion: seed for random generator #25

fflori4n opened this issue Apr 30, 2020 · 5 comments

Comments

@fflori4n
Copy link

Currently I don't see if there is a way to set a seed for the random generator. Something like in the python library 'faker' would be nice:

from faker import Faker
fake = Faker()
Faker.seed(4321)

Can't seem to find if the Random() function has a method to set it's seed?

@drager
Copy link
Owner

drager commented Oct 27, 2020

Sounds like a good suggestion. Feel free to send a PR 😊

@daemon3000
Copy link
Contributor

@drager Is it ok if I open another PR for this? There hasn't been any activity on the previous one.

@fflori4n
Copy link
Author

Go ahead. This pull request used an older fork, so it won't be merged, and I forgot to make a new one. Sorry. The code to solve the issue is in there, so use it if you want to.

@drager
Copy link
Owner

drager commented Dec 12, 2020

@drager Is it ok if I open another PR for this? There hasn't been any activity on the previous one.

Yes, feel free to do that!

@drager
Copy link
Owner

drager commented Jan 10, 2021

Fixed in #32

@drager drager closed this as completed Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants