Skip to content

SeedRandom

SeedRandom[seed] seeds the internal random number generator with a given integer seed.

Attributes[SeedRandom] := {Protected}

Details

SeedRandom[UnixTime[]] is called automatically upon initialization of Expreduce, so random number sequences will not repeat over subsequent sessions.

Simple examples

In[1]:= RandomReal[]
Out[1]= 0.0750914
In[2]:= SeedRandom[3]
Out[2]= Null
In[3]:= RandomReal[]
Out[3]= 0.719983
In[4]:= RandomReal[]
Out[4]= 0.652631
In[5]:= SeedRandom[3]
Out[5]= Null
In[6]:= RandomReal[]
Out[6]= 0.719983