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

Reproducible simulations #92

Open
pictavien opened this issue Jan 21, 2020 · 0 comments
Open

Reproducible simulations #92

pictavien opened this issue Jan 21, 2020 · 0 comments
Milestone

Comments

@pictavien
Copy link
Collaborator

pictavien commented Jan 21, 2020

Hi,

In several places, JBotSim uses java.util.Random class or Math.random() to produce randomized behaviors. In order to allow reproducible simulations like tests, it is unavoidable to have some mean to control pseudo-random number generators (PRNG) used by the library, examples, ... Topology could offer such API but it would mean a topology is required everywhere a random number is used. A topology is not always available, for instance in the constructor of a Node.
A static API is perhaps a solution ...

@remikey remikey added this to the ??? milestone Feb 3, 2020
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

2 participants