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

Provide a seed value for Random generator #6

Closed
mcintyre321 opened this issue Oct 12, 2014 · 6 comments
Closed

Provide a seed value for Random generator #6

mcintyre321 opened this issue Oct 12, 2014 · 6 comments

Comments

@mcintyre321
Copy link

Hi Ali!

Is there a way to set the seed value for the underlying Random?

This is particularly helpful for consistent results when replaying from an event log :)

cheers,

Harry

@jkonecki
Copy link
Collaborator

There isn't at the moment but it makes a nice feature request. ;-)

Ali, do you have a preferred way of implementing it? I could extend fluent
api with .WithSeed() method or add optional parameter to the methods. ..
On 12 Oct 2014 15:59, "Harry McIntyre" notifications@github.com wrote:

Hi Ali!

Is there a way to set the seed value for the underlying Random?

This is particularly helpful for consistent results when replaying from an
event log :)

cheers,

Harry


Reply to this email directly or view it on GitHub
#6.

@aliostad
Copy link
Owner

Hi Harry,

Good to hear from you!
@jkonecki that sounds like the best idea.

@aliostad
Copy link
Owner

@mcintyre321 don't forget to give us a star!

@mcintyre321
Copy link
Author

Done!

@jkonecki
Copy link
Collaborator

Implemented - Use Gen.WithSeed(int seed).
Just need to wait for Ali to push new package out.

@jkonecki
Copy link
Collaborator

Published on NuGet as RandomGen 0.3.0.

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

No branches or pull requests

3 participants