public interface PseudoRandomGeneratorProvider
A provider for pseudo-random generators.
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a newPseudoRandomGeneratorinstance.default PseudoRandomGeneratorcreate(long seed) Creates a newPseudoRandomGeneratorinstance and sets a seed.Returns aPseudoRandomGeneratorProviderbased on the SplitMix64 algorithm.
-
Method Details
-
create
PseudoRandomGenerator create()Creates a newPseudoRandomGeneratorinstance.- Returns:
- the new pseudo-random generator instance
-
create
Creates a newPseudoRandomGeneratorinstance and sets a seed.- Parameters:
seed- the seed value- Returns:
- the new pseudo-random generator instance
-
splitMix64_V1
Returns aPseudoRandomGeneratorProviderbased on the SplitMix64 algorithm.- Returns:
- a
PseudoRandomGeneratorProvider
-