Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

JAPH out of random (Bored)

by lindex (Friar)
on Jan 05, 2001 at 03:58 UTC ( #49915=obfuscated: print w/replies, xml ) Need Help??

#!/usr/bin/perl # # A waste of brain power # $|++; use strict; use vars qw(%h @e @j $v $i $r); @j = qw( 74 117 115 116 32 65 110 111 116 104 101 114 32 80 101 114 108 32 72 97 99 107 101 114 ); open($r,"</dev/urandom") || die("$!: /dev/urandom\n"); while($i!=($#j+1)) { $v=(unpack("S2",<$r>) % 177); next if($h{$v}==$v); for(my($c)=0;$c <= $#j;$c++) { if($j[$c]==$v) { $i++; $e[$c]=chr($v); print "\r[ ".join('',map{my($c)=$_||' '; $c}@e)." ]"; } } $h{$v}=$v; } print "\n"; close($r);



lindex
/****************************/ jason@gost.net, wh@ckz.org http://jason.gost.net /*****************************/

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://49915]
Approved by root
help
Chatterbox?
[james28909]: it is this node node_id=1190960
[james28909]: excuse me id=1190960
[james28909]: what am i doing worng...
[james28909]: i do not have fun with this chat box :(

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-05-24 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?