Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Randomize word

by zdog (Priest)
on Sep 12, 2004 at 09:13 UTC ( [id://390387]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    ...
    }
    
    print join "", sort { compare($a, $b) } split //, "abcde";
    
  2. or download this
    $ perl test.pl
    a: 0.876941476789401; b: 0.5
    c: 0.0768385185833438; d: 0.5
    ...
    a: 0.746254431212112; d: 0.5
    b: 0.648884088019244; e: 0.5
    ebcda
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-24 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found