Previous Up Next

20.3.5  Generating random vectors and lists

The randvector command creates random vectors (see also Section 11.1.28).

Examples

randvector(3)
     

−64,−30,70
          
randvector(3,5)

or:

randvector(3,'rand(5)')
     

2,4,2
          
randvector(3,'randnorm(0,1)')
     

−0.361127118455,−0.018325111754,1.11875485898
          
randvector(3,2..4)
     

3.18034843914,2.48592940345,2.57507958449
          

Previous Up Next