Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

LFSR golf

by tye (Sage)
on May 08, 2001 at 01:23 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found