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

UniformGenerator using a seed of 0 #390

Open
GoogleCodeExporter opened this issue Jun 16, 2015 · 0 comments
Open

UniformGenerator using a seed of 0 #390

GoogleCodeExporter opened this issue Jun 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Describe the feature you are interested and which may bring benefit to the
project ...

I have been using the Genetic Algorithm and Math.Random. I noticed that the 
UniformGenerator() uses a seed of 0 if you do not specify a seed. This causes 
the same set of random numbers to be generated every time. I would think that 
the user would specify a seed and keep it constant if they wanted to have the 
same set of random numbers. The current method is different from the .net 
Random() method that used Environment.TickCount if no seed if set. It took me a 
little while to figure out why my GA was finding the same solution every time. 

I would recommend consistency with the .net Random class.




Provide any references/links to publications/algorithms/etc. which could
help in development ...



Original issue reported on code.google.com by [email protected] on 11 Sep 2014 at 6:17

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

1 participant