Description
This is a wish for an instance create method for RandomSource:
public RestorableUniformRandomProvider create() { return create(this); } public RestorableUniformRandomProvider create(Object seed, Object... data) { return create(this, seed, data); }
It is syntactic sugar to avoid typing the use of the static factory method and repeating RandomSource in close succession:
RandomSource.create(RandomSource.MT); RandomSource.create(RandomSource.MT, 12345L);
Becomes:
RandomSource.MT.create(); RandomSource.MT.create(12345L);
It would make the use of the static factory method redundant, which could be deprecated.
Opinions on this?