[Discuss-gnuradio] generate 0s and 1s

2009-02-13 Thread yufeng wang
Hi, all, Can anyone tell me which function in Python could I use to generate a fixed length of 0s and 1s? I know in matlab we could just use randsrc(x, y, 0:1), while I've no idea how to implement it in Python. Thanks for ur help! ___ Discuss-gnuradio

Re: [Discuss-gnuradio] generate 0s and 1s

2009-02-13 Thread Ed Criscuolo
yufeng wang wrote: Can anyone tell me which function in Python could I use to generate a fixed length of 0s and 1s? I know in matlab we could just use randsrc(x, y, 0:1), while I've no idea how to implement it in Python. Thanks for ur help! Look at the linear shift feedback register