Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 contemplating the Monastery: (5)
As of 2015-02-28 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    On my keyboard, Caps lock is:








    Results (458 votes), past polls