Generation of a pseudo-random number sequence
number of bits to generate
output binary vector (1 column of n elements, of value either 0 or 1)
The implementation is based on the grand
Scilab generator.
Note: So as to generate always the same pseudo-"random" sequence, one can
initialize the seed of the random generator using the following command:
grand("setsd", n)
, with n being any integer.