Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Return a pseudorandom vector of a given type and size
ResourceFunction["RandomVector"][type,range,n] returns an n-dimensional vector with entries that are random values of type type and lie in range range. |
A random three-dimensional vector whose entries are approximate real numbers between 0 and 1:
| In[1]:= |
|
| Out[1]= |
|
A random three-dimensional vector whose entries are approximate real numbers between -5 and 10:
| In[2]:= |
|
| Out[2]= |
|
A random three-dimensional vector whose entries are integers between -5 and 10:
| In[3]:= |
|
| Out[3]= |
|
A random three-dimensional vector whose entries are rationals between -5 and 10:
| In[4]:= |
|
| Out[4]= |
|
A random three-dimensional vector whose entries are Gaussian integers between -5 and 10:
| In[5]:= |
|
| Out[5]= |
|
A random three-dimensional vector whose entries are Gaussian rationals between -5 and 10:
| In[6]:= |
|
| Out[6]= |
|
A random three-dimensional vector whose entries are RandomComplex[{-5+2I,10-3I}]:
| In[7]:= |
|
| Out[7]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License