RandomSeeding

RandomSeeding

is an option that specifies what seeding of pseudorandom generators should be done inside the operation of a function.

Details

  • Possible settings are:
  • Automaticautomatically reseed every time the function is called
    Inheriteduse externally seeded random numbers
    seeduse an explicit integer or strings as a seed

Examples

open allclose all

Basic Examples  (1)

Give an explicit random seeding for FindInstance:

In[1]:=
Click for copyable input
Out[1]=

The result will always be the same with this seeding:

In[2]:=
Click for copyable input
Out[2]=

With the default Automatic seeding, a different seed is used for each instance:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

Scope  (1)

Properties & Relations  (1)

See Also

SeedRandom  BlockRandom

Introduced in 2017
(11.2)