Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Random Derangement Of An Array

by jdporter (Canon)
on Jul 06, 2008 at 11:56 UTC ( #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
Node Status?
node history
Node Type: note [id://695813]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-02-28 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?