Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Randomize an array

by PipTigger (Hermit)
on Sep 11, 2000 at 19:13 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://31893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found