prbs
Generation of a pseudo-random number sequence
Calling sequence
b = prbs(n)
b = prbs(n)
Parameters
- n:
number of bits to generate
- b:
output binary vector (1 column of n elements)
number of bits to generate
output binary vector (1 column of n elements)
Description
Implementation based on the grand Scilab generator.
Note: So as to generate a determinist pseudo-"random" sequence, one can
initialize the seed of the random generator using the following command:
grand("setsd", n)
, with n being any integer.
Examples
// Generation of a vector of 10 random bits
b = prbs(10)
// Generation of a vector of 10 random bits b = prbs(10) |