Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Randomize an array

by PipTigger (Hermit)
on Sep 11, 2000 at 19:13 UTC ( #31893=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    my @unrandom = ("red", "orange", "yellow", "green", "blue", "indigo", 
    +"violet");
    ...
    }
    @ununrand = keys(%temphash);
    print "Unn:@unrandom\nRnd:@ununrand\n";
    
  2. or download this
    Unn:red orange yellow green blue indigo violet
    Rnd:blue orange green violet yellow red indigo
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2019-05-21 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (129 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!