Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

LFSR golf

by tye (Cardinal)
on May 08, 2001 at 01:23 UTC ( #78666=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
    while( 1 ) {
        print join( " ", map $lfsr->(), 1..$bits ), $/;
    }
    
  2. or download this
    my $lfsr= golfGenLFSR( $nBits, $iSeed, $tap0, $tap1, $tap2 );
    my $nextBit= $lfsr->();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://78666]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-08-30 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls