JBotSim icon indicating copy to clipboard operation
JBotSim copied to clipboard

Reproducible simulations

Open pictavien opened this issue 5 years ago • 0 comments

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 ...

pictavien avatar Jan 21 '20 13:01 pictavien