Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Randomize word

by ysth (Canon)
on Sep 12, 2004 at 08:12 UTC ( [id://390381]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -we'use Data::Dumper; ++$Data::Dumper::Sortkeys; ++$count{join 
    +"", sort \
    {rand()<=>rand()}split //, "abcde"} for 1..100000; print Dumper \%coun
    +t;'|less
    
  2. or download this
    $ perl -we'use Data::Dumper; ++$Data::Dumper::Sortkeys; use List::Util
    + "shuffle"; \
    ++$count{join "", shuffle split //, "abcde"} for 1..100000; print Dump
    +er \%count;'|less
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-03-28 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found