Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

My late-nite japh attempt :-)

by Adrade (Pilgrim)
on Jun 01, 2005 at 09:51 UTC ( [id://462376]=obfuscated: print w/replies, xml ) Need Help??

Here's my late nite shot at a japh - my first attempt, and probably not its last revision. It should work for most folks, but depends on a specific rand, which not all folks have (doesn't seem to work in Win). And there aren't any spaces :-( -- saving that for later :-)
do{srand($_);print((' ',a..z)[int(rand(27))])for 0..3} for('545666138092139611801068530967354465'=~/(.{6})/g)

Best,
  -Adam

Update: Now includes spaces :-)
Update2: I read up on the rules and placed in a newline to make it fit in an oldstyle usenet sig. You can eliminate the newline if you'd like.

--
Impossible! The Remonster can only be killed by stabbing him in the heart with the ancient bone saber of Zumakalis!

Replies are listed 'Best First'.
Re: My late-nite japh attempt :-)
by kaif (Friar) on Jun 05, 2005 at 17:14 UTC
    do{srand($_);print((' ',a..z)[int(rand(27))])for 0..3} for('185103579996010520472053207918834193'=~/(.{6})/g)
    Memory-hungry code used to generate this:
    $x=join$",map{srand$_;join"",map{10+int rand 27}(1..4)}(0..10**6);prin +t map{sprintf "%06d",1/9*index$x,join"",map{10+ord()%32}/./g}"good job and unique id +ea"=~/.{4}/g
        Oh well - I guess I figured someone might have tried using rand to do this... anyway, thx for the link
          -Adam

        --
        Impossible! The Remonster can only be killed by stabbing him in the heart with the ancient bone saber of Zumakalis!

Log In?
Username:
Password:

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

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

    No recent polls found