Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Random 1-1 mapping

by tomazos (Deacon)
on May 28, 2006 at 17:56 UTC ( [id://552199]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub shuffle($$$) {
        my ($seed, $max, $input) = @_;
    
    ...
    
        return $result
    }
    
  2. or download this
    get_rand(\@$$) {
        my ($list, $seed, $input) = @_;
    ...
    }
    
    # might print 40 10 20 60 30 50
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-18 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found