Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Golf: Movie style code cracker.

by blokhead (Monsignor)
on Sep 12, 2008 at 19:24 UTC ( [id://710986]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $n=pop;for(;;){warn$f,map(int rand 10,1..$n),$/;++$i%1e3 or$f.=int ran
    +d 10 and$n--or last}
    
  2. or download this
    @x=("%d")x($n=pop);$"="";for(;;){printf"@x\n",map(int rand 10,1..$n);+
    ++$i%500 or$n-=$x[rand@x]=~s/../int rand 10/e or last;}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://710986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-19 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found