|
Further Examples: Random
Here is a pseudorandom real number in the range from to .
In[1]:= 
Out[1]= 
If you need repeatable results, you can reseed the random number generator.
In[2]:= 
In[3]:= 
Out[3]= 
In[4]:= 
In[5]:= 
Out[5]= 
Here is a pseudorandom real number in the range from to .
In[6]:= 
Out[6]= 
Here is a pseudorandom real number in the range from to .
In[7]:= 
Out[7]= 
Here is a pseudorandom real number in the range from to .
In[8]:= 
Out[8]= 
This generates a pseudorandom real number in the range from to with digits of precision.
In[9]:= 
Out[9]= 
In[10]:= 
Out[10]= 
Here is a pseudorandom complex number in the rectangle with corners  and  .
In[11]:= 
Out[11]= 
To use a different distribution to generate pseudorandom numbers, first load the package ContinuousDistributions.
In[12]:= 
This defines the function RandomNormal which generates pseudorandom numbers with a normal distribution.
In[13]:= 
This generates a pseudorandom number from a normal distribution with mean and standard deviation .
In[14]:= 
Out[14]= 
The defined function RandomRelist gives a list with the same members as the input list, but in a random reordering.
In[15]:= 
In[16]:= 
Out[16]= 
|