Scilab Function
Last update : 1/11/2005
randvek - Creation of a vector with length N with
numbers from 1 ... N on random positions
Calling Sequence
-
a = randvek(N)
Parameters
-
N
: natural positive number, length of random vector
-
a
: random vector with elements in the range [1,...,N]. Every
number occurs only one time in the vector.
Description
-
The function uses a while loop, where the random vector is build up
iteratively. Therefore, the evaluation time is not fixed.
Examples
a=randvek(10)
// That's it.
Authors
-
Dr. Andreas Geissler geisslea@web.de