Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Random Derangement Of An Array

by jdporter (Paladin)
on Jul 06, 2008 at 11:56 UTC ( [id://695813]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub random_derangement
    {
    ...
        @r
    }
    
  2. or download this
    sub derange
    {
    ...
        @_[ @i ] = @_[ @i[1..$#i], $i[0] ];
    }
    
  3. or download this
    sub random_derangement
    {
    ...
        @r
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found