is an option that specifies what seeding of pseudorandom generators should be done inside the operation of a function.
- Possible settings are:
Automatic automatically reseed every time the function is called Inherited use externally seeded random numbers RandomGeneratorState[…] a RandomGeneratorState object seed use an explicit integer or string as a seed
Examplesopen allclose all
Basic Examples (1)
Give an explicit random seeding for FindInstance:
The result will always be the same with this seeding:
With the default Automatic seeding, a different seed is used for each instance:
Use externally seeded random numbers for FindInstance:
Repeated evaluations with no intervening use of randomness will give the same result:
If randomness is requested between evaluations, the state will change:
RandomSeeding->Inherited causes FindInstance to effectively use BlockRandom:
Properties & Relations (1)
RandomSeeding->Inherited uses the current random state:
RandomSeeding->Automatic completely ignores the current random state:
Wolfram Research (2017), RandomSeeding, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomSeeding.html (updated 2020).
Wolfram Language. 2017. "RandomSeeding." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/RandomSeeding.html.
Wolfram Language. (2017). RandomSeeding. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RandomSeeding.html