[core] (new:minor) added a new constructors to accept an external (and possibly used elsewhere) random number generator, in order to help experiment's reproducibility.